Lots of changes
New termite theme Changed i3 configuration Added run script and find_blob script
This commit is contained in:
14
scripts/.bin/find-blob.sh
Executable file
14
scripts/.bin/find-blob.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
obj_name="$1"
|
||||
shift
|
||||
git ls-files --stage \
|
||||
| if grep -q "$obj_name"; then
|
||||
echo Found in staging area. Run git ls-files --stage to see.
|
||||
fi
|
||||
|
||||
git log "$@" --pretty=format:'%T %h %s' \
|
||||
| while read tree commit subject ; do
|
||||
if git ls-tree -r $tree | grep -q "$obj_name" ; then
|
||||
echo $commit "$subject"
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user