]> asedeno.scripts.mit.edu Git - git.git/commitdiff
Merge branch 'jn/fix-abbrev' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Aug 2010 19:53:09 +0000 (12:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Aug 2010 19:53:09 +0000 (12:53 -0700)
* jn/fix-abbrev:
  examples/commit: use --abbrev for commit summary
  checkout, commit: remove confusing assignments to rev.abbrev
  archive: abbreviate substituted commit ids again

1  2 
builtin/commit.c

diff --combined builtin/commit.c
index 2bb30c0e80f8948b28599da06c94c8c66b5733c7,279cfc1b5df89d8a58a25ecf5a9098cb761a91bf..c4a577d5c5595a6c50ecaaba90690c286d30b7e2
@@@ -147,7 -147,7 +147,7 @@@ static struct option builtin_commit_opt
                    "terminate entries with NUL"),
        OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
        OPT_BOOLEAN(0, "no-post-rewrite", &no_post_rewrite, "bypass post-rewrite hook"),
 -      { OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no. (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
 +      { OPTION_STRING, 'u', "untracked-files", &untracked_files_arg, "mode", "show untracked files, optional modes: all, normal, no (Default: all)", PARSE_OPT_OPTARG, NULL, (intptr_t)"all" },
        /* end commit contents options */
  
        { OPTION_BOOLEAN, 0, "allow-empty", &allow_empty, NULL,
@@@ -1163,7 -1163,6 +1163,6 @@@ static void print_summary(const char *p
        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;