diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 00:02:41 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 00:02:41 +1000 |
commit | 59885e45df4a2832006e4b5550cb930e1c9fe794 (patch) | |
tree | 518136453e64b8c0a768f141b4b065cc83678237 | |
parent | 6e585c54a2397306e36c78e1bd6f9c9a7d5d91d3 (diff) |
deal with month time unit in reflog output
-rw-r--r-- | gitcommands.go | 4 |
1 files changed, 3 insertions, 1 deletions
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' \ |