From 08f811dd5fd49564daf1379e046e8fa699285be7 Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Tue, 16 Oct 2012 16:10:14 -0700 Subject: [PATCH] fixed sed command so it works on non-Macs --- git/githelpers | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/git/githelpers b/git/githelpers index ec65944..c84a81d 100644 --- a/git/githelpers +++ b/git/githelpers @@ -29,9 +29,11 @@ show_git_head() { pretty_git_log() { git log --graph --pretty="tformat:${FORMAT}" $* | # Replace (2 years ago) with (2 years) - sed -Ee 's/(^[^<]*) ago)/\1)/' | + #sed -Ee 's/(^[^<]*) ago)/\1)/' | + sed -e 's/ ago//' | # Replace (2 years, 5 months) with (2 years) - sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?)/\1)/' | + #sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?)/\1)/' | + sed -e 's/(^[^<]*), [[:digit:]]+ .*months?)/)/' | # Line columns up based on } delimiter column -s '}' -t | # Page only if we need to