Skip to content

Commit

Permalink
Adjust to new format for git log output
Browse files Browse the repository at this point in the history
  • Loading branch information
nvie committed Oct 21, 2018
1 parent a8dbf5d commit 4ea5c29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-modified
Expand Up @@ -112,7 +112,8 @@ if [ -z "$commit" ]; then
modified_locally | fail_if_empty
fi
else
git log -1 --name-status --pretty=format:"" "$commit" | cut -f2- | make_relative | while read f; do
TAB=" " # literal tab char
git log -1 --name-status --pretty=format:"" "$commit" | cut -f2- | rev | cut -d"$TAB" -f1 | rev | make_relative | while read f; do
if [ -f "$f" ]; then
echo "$f"
fi
Expand Down

0 comments on commit 4ea5c29

Please sign in to comment.