Skip to content

Commit

Permalink
p5303: add missing &&-chains
Browse files Browse the repository at this point in the history
These are in a helper function, so the usual chain-lint doesn't notice
them. This function is still not perfect, as it has some git invocations
on the left-hand-side of the pipe, but it's primary purpose is timing,
not finding bugs or correctness issues.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Feb 23, 2021
1 parent 339bce2 commit 60bb5f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/perf/p5303-many-packs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ repack_into_n () {
push @commits, $_ if $. % 5 == 1;
}
print reverse @commits;
' "$1" >pushes
' "$1" >pushes &&

# create base packfile
head -n 1 pushes |
git pack-objects --delta-base-offset --revs staging/pack
git pack-objects --delta-base-offset --revs staging/pack &&

# and then incrementals between each pair of commits
last= &&
Expand Down

0 comments on commit 60bb5f2

Please sign in to comment.