Files
git/builtin
Jeff King ed58d8088b blame: handle --no-abbrev
You can already ask blame for full sha1s with "-l" or with
"--abbrev=40". But for consistency with other parts of Git,
we should support "--no-abbrev".

Worse, blame already accepts --no-abbrev, but it's totally
broken. When we see --no-abbrev, the abbrev variable is set
to 0, which is then used as a printf precision. For regular
sha1s, that means we print nothing at all (which is very
wrong). For boundary commits we decrement it to "-1", which
printf interprets as "no limit" (which is almost correct,
except it misses the 39-length magic explained in the
previous commit).

Let's detect --no-abbrev and behave as if --abbrev=40 was
given.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-01-07 19:34:54 -08:00
..
2016-07-13 11:24:10 -07:00
2017-01-07 19:34:54 -08:00
2016-02-26 13:37:16 -08:00
2015-11-20 08:02:05 -05:00
2016-08-03 15:10:28 -07:00
2016-06-17 15:46:10 -07:00
2015-10-21 15:59:34 -07:00
2016-02-26 13:37:16 -08:00
2016-10-11 14:18:32 -07:00
2016-07-13 11:24:10 -07:00
2016-07-14 15:50:41 -07:00
2016-07-25 14:13:33 -07:00
2016-07-13 11:24:10 -07:00
2015-10-05 13:20:08 -07:00
2016-04-29 12:59:09 -07:00