summaryrefslogtreecommitdiffstats
path: root/gitcommands.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-06 00:02:41 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-06 00:02:41 +1000
commit59885e45df4a2832006e4b5550cb930e1c9fe794 (patch)
tree518136453e64b8c0a768f141b4b065cc83678237 /gitcommands.go
parent6e585c54a2397306e36c78e1bd6f9c9a7d5d91d3 (diff)
deal with month time unit in reflog output
Diffstat (limited to 'gitcommands.go')
-rw-r--r--gitcommands.go4
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' \