Skip to content
Snippets Groups Projects
Commit c617df3c authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Replace grep/sed with awk

parent 79e3e78f
No related merge requests found
......@@ -22,6 +22,5 @@ echo
# stdin; pack data is not read.
awk '/^$/ { exit } /^[^#]/ { print $1 }' |\
git cat-file --batch-check='%(objectname)' |\
grep -v ' missing$' |\
sed 's/^/^/'
awk '!/ missing$/ { print "^" $1 }'
) | git pack-objects --thin --stdout --non-empty --delta-base-offset
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment