public
Description: A bunch of random scripts I've either written, downloaded or clipped from #git.
Homepage:
Clone URL: git://github.com/jwiegley/git-scripts.git
git-scripts / git-find-blob
100755 14 lines (10 sloc) 0.314 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
 
filename=$1
 
want=$(git-hash-object "$filename")
 
git-rev-list --since="6 months ago" HEAD | while read commit ; do
git-ls-tree -r $commit | while read perm type hash filename; do
if test "$want" = "$hash"; then
echo matched $filename in commit $commit
        fi
done
done