The default abbreviation precision should be DEFAULT_ABBREV as before.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git_config(git_diff_config);
nr_sha1 = 0;
+ opt->abbrev = 0;
argc = setup_revisions(argc, argv, opt, NULL);
while (--argc > 0) {
const char *commit_prefix = "commit ";
int shown = 0;
+ rev.abbrev = DEFAULT_ABBREV;
argc = setup_revisions(argc, argv, &rev, "HEAD");
if (argc > 1)
die("unrecognized argument: %s", argv[1]);
void init_revisions(struct rev_info *revs)
{
+ unsigned abbrev = revs->abbrev;
+
memset(revs, 0, sizeof(*revs));
+
+ revs->abbrev = abbrev;
+ revs->ignore_merges = 1;
revs->pruning.recursive = 1;
revs->pruning.add_remove = file_add_remove;
revs->pruning.change = file_change;