projects
/
geekigeeki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4418a51
)
Add eperimental git-cat idea
author
Bernardo Innocenti
<bernie@codewiz.org>
Tue, 26 Feb 2008 17:23:45 +0000
(18:23 +0100)
committer
Bernardo Innocenti
<bernie@codewiz.org>
Tue, 26 Feb 2008 17:23:45 +0000
(18:23 +0100)
git-cat
[new file with mode: 0755]
patch
|
blob
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]}