summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0b3dcfe)
raw | patch | inline | side by side (parent: 0b3dcfe)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Mon, 22 Mar 2010 13:36:30 +0000 (14:36 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 24 Mar 2010 18:11:58 +0000 (11:11 -0700) |
Currently, rev-list has a default of "0" for abbrev which means that
switching on abbreviations with --abbrev-commit has no visible effect,
even though the option is documented.
Set abbrev to DEFAULT_ABBREV so that --abbrev-commit has the same effect
as for log.
Reported-by: Eli Barzilay <eli@barzilay.org>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
switching on abbreviations with --abbrev-commit has no visible effect,
even though the option is documented.
Set abbrev to DEFAULT_ABBREV so that --abbrev-commit has the same effect
as for log.
Reported-by: Eli Barzilay <eli@barzilay.org>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-list.c | patch | blob | history |
diff --git a/builtin-rev-list.c b/builtin-rev-list.c
index 5679170e82ed644d4c3eb4f71f26aa0ac9acce24..eb8e2c2056271345e42003ad5e51d775f8e07177 100644 (file)
--- a/builtin-rev-list.c
+++ b/builtin-rev-list.c
git_config(git_default_config, NULL);
init_revisions(&revs, prefix);
- revs.abbrev = 0;
+ revs.abbrev = DEFAULT_ABBREV;
revs.commit_format = CMIT_FMT_UNSPECIFIED;
argc = setup_revisions(argc, argv, &revs, NULL);