We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6972ff8 commit a0d5806Copy full SHA for a0d5806
git-modified
@@ -113,7 +113,9 @@ if [ -z "$commit" ]; then
113
fi
114
else
115
TAB=" " # literal tab char
116
- git log -1 --name-status --pretty=format:"" "$commit" | cut -f2- | rev | cut -d"$TAB" -f1 | rev | make_relative | while read f; do
+ rev='rev'
117
+ type rev >/dev/null 2>&1 || rev='tac'
118
+ git log -1 --name-status --pretty=format:"" "$commit" | cut -f2- | $rev | cut -d"$TAB" -f1 | $rev | make_relative | while read f; do
119
if [ -f "$f" ]; then
120
echo "$f"
121
0 commit comments