Add eperimental git-cat idea
authorBernardo Innocenti <bernie@codewiz.org>
Tue, 26 Feb 2008 17:23:45 +0000 (18:23 +0100)
committerBernardo Innocenti <bernie@codewiz.org>
Tue, 26 Feb 2008 17:23:45 +0000 (18:23 +0100)
git-cat [new file with mode: 0755]

diff --git a/git-cat b/git-cat
new file mode 100755 (executable)
index 0000000..5b9945c
--- /dev/null
+++ b/git-cat
@@ -0,0 +1,7 @@
+if [ $# -ne 1 ] ; then
+       echo "Usage: $0 {path}"
+       exit 1
+fi
+
+info=(`git ls-tree HEAD $1`)
+git-cat-file blob ${info[2]}