Skip to content

Commit 14586c7

Browse files
authored
Fix use of git-whatchanged to git-log (#1212)
1 parent 5c9a7a2 commit 14586c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/git-utimes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ fi
3434

3535
status_opts=(--porcelain --short)
3636
# %ct: committer date, UNIX timestamp / %at: author date, UNIX timestamp
37-
whatchanged_opts=(--format='%ct')
37+
log_opts=(--format='%ct')
3838
if git status --help 2>&1 | grep -q -- "--no-renames"; then
3939
status_opts+=(--no-renames)
40-
whatchanged_opts+=(--no-renames)
40+
log_opts+=(--no-renames)
4141
fi
4242
if git status --help 2>&1 | grep -q -- "--untracked-files"; then
4343
status_opts+=(--untracked-files=no)
@@ -126,6 +126,6 @@ git --no-pager status "${status_opts[@]}" . \
126126
| cut -c 4- >"${tmpfile}"
127127

128128
# prefix is not stripped:
129-
git --no-pager whatchanged "${whatchanged_opts[@]}" . \
129+
git --no-pager log --raw --no-merges "${log_opts[@]}" . \
130130
| awk "${awk_flags[@]}" "${awk_script}" "${tmpfile}" - \
131131
| BASH_ENV='' bash "${bash_opts[@]}" -

0 commit comments

Comments
 (0)