]> git.ipfire.org Git - thirdparty/git.git/commitdiff
p5303: add missing &&-chains
authorJeff King <peff@peff.net>
Tue, 23 Feb 2021 02:25:13 +0000 (21:25 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Feb 2021 07:30:52 +0000 (23:30 -0800)
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>
t/perf/p5303-many-packs.sh

index ce0c42cc9f72d6ff610c5fa0608353beb64fa3df..d90d7149231442485a0bc5dcc73071887f534799 100755 (executable)
@@ -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= &&