1. Stefan Saasen
  2. git-pastiche

Source

git-pastiche / bin / git-find-blob

Diff from to

File bin/git-find-blob

  • Ignore whitespace
 
 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