Commits

Stefan Saasen committed 0358efd

git-find-blob: Search across all refs

  • Participants
  • Parent commits 2434956

Comments (0)

Files changed (1)

File bin/git-find-blob

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