From ffc9877a7053416cd3b2bf2a779e2ace16bbf683 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Sun, 24 Mar 2024 13:50:12 +0100 Subject: [PATCH] git:last-changed: Print committer name too I am still unsure if I want the author or committer name. For the date I think it makes sense to have the committer date since it reflects better when the branch last changed. --- .config/zsh/autoload/git/git-last-changed | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/autoload/git/git-last-changed b/.config/zsh/autoload/git/git-last-changed index 4c9a661..b593c39 100755 --- a/.config/zsh/autoload/git/git-last-changed +++ b/.config/zsh/autoload/git/git-last-changed @@ -17,7 +17,7 @@ local color_set ls -1p --color="$color_set" "$@" \ | while read -r line; do sanitized_line="$(sed 's/\x1b\[[^m]*m//g' <<<"$line")" - git_info="$(git log -1 --format=$'%ci\t%s' -- "$sanitized_line")" + git_info="$(git log -1 --format=$'%ci\t%cn\t%s' -- "$sanitized_line")" printf "%s\t%s\n" "$line" "$git_info" done \ | sort -r -t$'\t' -k2,2 \