Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jc/blame-abbrev'
author
Junio C Hamano
<gitster@pobox.com>
Thu, 6 Oct 2016 21:53:10 +0000
(14:53 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 6 Oct 2016 21:53:10 +0000
(14:53 -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
patch
|
blob
|
history
raw
(from parent 1:
8c98a68
)
diff --git
a/builtin/blame.c
b/builtin/blame.c
index a7bd7a6fd80f7d68f58d094bdc5cd6c288fb0e29..da44b36ff5eab12a442e5299ff8b98c2505b16f4 100644
(file)
--- a/
builtin/blame.c
+++ b/
builtin/blame.c
@@
-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;