Commit 0857e5e4f4cd18ab9fc0e8ff34992e4d0ff59b85

Stefan Sperling 2018-04-01T13:48:45

add a script which decompresses a git object I will never remember which command to use and how to get it...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/util/uncompress-loose-object.sh b/util/uncompress-loose-object.sh
new file mode 100755
index 0000000..01e5a1d
--- /dev/null
+++ b/util/uncompress-loose-object.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+# requires zlib-flate which is part of the qpdf package: pkg_add qpdf
+
+if [ "$1" != "" ]; then
+	zlib-flate -uncompress < "$1"
+else
+	zlib-flate -uncompress
+fi