Re: [PATCH] doc: Improve description for rev-parse --short

2017-05-30 Thread Junio C Hamano
Andreas Heiduk writes: > ALso: Did you remove the `linkgit` by intention or just by accident? By accident. I agree that "Same as `--verify`" is a good way to do this.

Re: [PATCH] doc: Improve description for rev-parse --short

2017-05-30 Thread Andreas Heiduk
Am 30.05.2017 um 06:10 schrieb Junio C Hamano: >> --short=number:: >> Instead of outputting the full SHA-1 values of object names try to >> abbreviate them to a shorter unique name. When no length is specified >> -7 is used. The minimum length is 4. >> +the effective value of the

Re: [PATCH] doc: Improve description for rev-parse --short

2017-05-29 Thread Junio C Hamano
Andreas Heiduk writes: > First: `git rev-parse --short` without a number does use a fixed default but > `core.abbrev` which in turn uses `find_unique_abbrev` internally. ... hence the value gives mere minumum. I like your updated text that clarifies this point. > Second: `--short` implies `--v

[PATCH] doc: Improve description for rev-parse --short

2017-05-28 Thread Andreas Heiduk
First: `git rev-parse --short` without a number does use a fixed default but `core.abbrev` which in turn uses `find_unique_abbrev` internally. Second: `--short` implies `--verify` since the beginning (d50125085a), so it cannot be used for bulk-shortening ids unfortunately. Signed-off-by: Andreas