diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-18 09:13:15 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-18 09:14:19 +0000 |
commit | 8b4ddc9c2c08cd085f5c4d5dfc019342dd53b570 (patch) | |
tree | 74456fb8eb601aaeaf996fbfcf450299b47ca12e /lib/PublicInbox/V2Writable.pm | |
parent | f86a714ac141e257b9bd50be81065e670cfb718b (diff) | |
download | public-inbox-8b4ddc9c2c08cd085f5c4d5dfc019342dd53b570.tar.gz |
We generally do not want git to waste time finding abbreviations and we do not want the possibility of them becoming ambiguous over time, either.
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r-- | lib/PublicInbox/V2Writable.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm index 2cc87305..1316d628 100644 --- a/lib/PublicInbox/V2Writable.pm +++ b/lib/PublicInbox/V2Writable.pm @@ -788,7 +788,7 @@ $range $ranges->[$i] = $range; # can't use 'rev-list --count' if we use --diff-filter - my $fh = $git->popen(qw(log --pretty=tformat:%h + my $fh = $git->popen(qw(log --pretty=tformat:%H --no-notes --no-color --no-renames --diff-filter=AM), $range, '--', 'm'); ++$regen_max while <$fh>; @@ -865,7 +865,7 @@ sub index_sync { my $regen = $self->index_prepare($opts, $epoch_max, $ranges); $$regen += $max if $max; my $D = {}; - my @cmd = qw(log --raw -r --pretty=tformat:%h + my @cmd = qw(log --raw -r --pretty=tformat:%H --no-notes --no-color --no-abbrev --no-renames); # work backwards through history |