From 14586c7da045db6b100022e54278e9a49657d5bf Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Fri, 29 Aug 2025 03:27:55 -0700 Subject: [PATCH] Fix use of `git-whatchanged` to `git-log` (#1212) --- bin/git-utimes | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/git-utimes b/bin/git-utimes index 9955a9d..f0dc1a4 100755 --- a/bin/git-utimes +++ b/bin/git-utimes @@ -34,10 +34,10 @@ fi status_opts=(--porcelain --short) # %ct: committer date, UNIX timestamp / %at: author date, UNIX timestamp -whatchanged_opts=(--format='%ct') +log_opts=(--format='%ct') if git status --help 2>&1 | grep -q -- "--no-renames"; then status_opts+=(--no-renames) - whatchanged_opts+=(--no-renames) + log_opts+=(--no-renames) fi if git status --help 2>&1 | grep -q -- "--untracked-files"; then status_opts+=(--untracked-files=no) @@ -126,6 +126,6 @@ git --no-pager status "${status_opts[@]}" . \ | cut -c 4- >"${tmpfile}" # prefix is not stripped: -git --no-pager whatchanged "${whatchanged_opts[@]}" . \ +git --no-pager log --raw --no-merges "${log_opts[@]}" . \ | awk "${awk_flags[@]}" "${awk_script}" "${tmpfile}" - \ | BASH_ENV='' bash "${bash_opts[@]}" -