Merge branch 'jc/blame-abbrev' into maint
authorJunio C Hamano <gitster@pobox.com>
Tue, 11 Oct 2016 21:19:52 +0000 (14:19 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Oct 2016 21:19:52 +0000 (14:19 -0700)
Almost everybody uses DEFAULT_ABBREV to refer to the default
setting for the abbreviation, but "git blame" peeked into
underlying variable bypassing the macro for no good reason.

* jc/blame-abbrev:
blame: use DEFAULT_ABBREV macro

builtin/blame.c
index a5bbf91e497524215c884f1e145070afcf3f586a..f618392e55f70966accc49aa7ff22de2d16f189f 100644 (file)
@@ -2111,7 +2111,7 @@ static void find_alignment(struct scoreboard *sb, int *option)
        unsigned largest_score = 0;
        struct blame_entry *e;
        int compute_auto_abbrev = (abbrev < 0);
-       int auto_abbrev = default_abbrev;
+       int auto_abbrev = DEFAULT_ABBREV;
 
        for (e = sb->ent; e; e = e->next) {
                struct origin *suspect = e->suspect;