deal with month time unit in reflog output

This commit is contained in:
Jesse Duffield 2018-08-06 00:02:41 +10:00
parent 6e585c54a2
commit 59885e45df

View file

@ -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' \