Files
sailing-analytics/configuration/findBlobInGit.sh
T

10 lines
211 B
Bash
Executable File

#!/bin/sh
obj_name="$1"
shift
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