Skip to content

Commit

Permalink
git-find-commits-by-file-hash.sh fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
oh2fih committed Apr 7, 2024
1 parent b8b8121 commit fbe008b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bin/git-find-commits-by-file-hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ cd "$(git rev-parse --show-toplevel)" \
matches=$(
git log --oneline --no-abbrev-commit --follow -- "$2" \
| awk '{print $1}' \
| while read -r commit; do
echo "$commit: $(
git show "$commit:$2" 2> /dev/null \
| sha256sum \
| awk '{print $1}'
)"
done \
| while read -r commit; do
echo "$commit: $(
git show "$commit:$2" 2> /dev/null \
| sha256sum \
| awk '{print $1}'
)"
done \
| grep -E "[0-9a-f]*:\ $1"
)

Expand Down

0 comments on commit fbe008b

Please sign in to comment.