Commits

Stefan Saasen committed b3c3166

git-find-blob: Show tree entries as well as blobs

Comments (0)

Files changed (1)

bin/git-find-blob

 
 blob="$1"
 shift
-    if git ls-tree -r $tree | grep -q "${blob}" ; then
 git log "$@" --all --pretty=format:'%T %h %s' | while read tree commit subject ; do
+    if git ls-tree -t -r $tree | grep -q "${blob}" ; then
         echo "${commit} ${subject}"
     fi
 done