Merge branch 'jk/p5303-sed-portability-fix' into maint
A perf script was made more portable. * jk/p5303-sed-portability-fix: p5303: avoid sed GNU-ism
This commit is contained in:
commit
6a7bf0ddb2
@ -21,10 +21,14 @@ repack_into_n () {
|
|||||||
mkdir staging &&
|
mkdir staging &&
|
||||||
|
|
||||||
git rev-list --first-parent HEAD |
|
git rev-list --first-parent HEAD |
|
||||||
sed -n '1~5p' |
|
perl -e '
|
||||||
head -n "$1" |
|
my $n = shift;
|
||||||
perl -e 'print reverse <>' \
|
while (<>) {
|
||||||
>pushes
|
last unless @commits < $n;
|
||||||
|
push @commits, $_ if $. % 5 == 1;
|
||||||
|
}
|
||||||
|
print reverse @commits;
|
||||||
|
' "$1" >pushes
|
||||||
|
|
||||||
# create base packfile
|
# create base packfile
|
||||||
head -n 1 pushes |
|
head -n 1 pushes |
|
||||||
|
Loading…
Reference in New Issue
Block a user