From 59885e45df4a2832006e4b5550cb930e1c9fe794 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Mon, 6 Aug 2018 00:02:41 +1000 Subject: [PATCH] deal with month time unit in reflog output --- gitcommands.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitcommands.go b/gitcommands.go index 976369317..a5f94c7f6 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -532,7 +532,9 @@ git reflog -n100 --pretty='%cr|%gs' --grep-reflog='checkout: moving' HEAD | { printf "%s\t%s\n" "$date" "$branch" fi fi - done \ + done \ + | sed 's/ months /m /g' \ + | sed 's/ month /m /g' \ | sed 's/ days /d /g' \ | sed 's/ day /d /g' \ | sed 's/ weeks /w /g' \