summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-08-18 12:28:58 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-18 12:28:58 -0700
commit226d06c16bcafda3417163437be9845130fd4998 (patch)
treecccf5515162f65b6829d94d33bf381b4cfee2fa1 /builtin
parentMerge branch 'vs/doc-spell' (diff)
parentexamples/commit: use --abbrev for commit summary (diff)
downloadtgif-226d06c16bcafda3417163437be9845130fd4998.tar.xz
Merge branch 'jn/fix-abbrev'
* jn/fix-abbrev: examples/commit: use --abbrev for commit summary checkout, commit: remove confusing assignments to rev.abbrev archive: abbreviate substituted commit ids again
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout.c1
-rw-r--r--builtin/commit.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 4ad74270cf..1f7e1546f6 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -283,7 +283,6 @@ static void show_local_changes(struct object *head)
struct rev_info rev;
/* I think we want full paths, even if we're in a subdirectory. */
init_revisions(&rev, NULL);
- rev.abbrev = 0;
rev.diffopt.output_format |= DIFF_FORMAT_NAME_STATUS;
if (diff_setup_done(&rev.diffopt) < 0)
die("diff_setup_done failed");
diff --git a/builtin/commit.c b/builtin/commit.c
index 2bb30c0e80..c4a577d5c5 100644
--- a/builtin/commit.c
+++ b/builtin/commit.c
@@ -1163,7 +1163,6 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
init_revisions(&rev, prefix);
setup_revisions(0, NULL, &rev, NULL);
- rev.abbrev = 0;
rev.diff = 1;
rev.diffopt.output_format =
DIFF_FORMAT_SHORTSTAT | DIFF_FORMAT_SUMMARY;