Permalink
Browse files

Avoids "Unmatched ) or \)" error

* GNU sed 4.2.1 on Ubuntu Precise raises an error unless the paren is escaped.
  • Loading branch information...
1 parent 39d4f2a commit eafcf8f553864bf5539f36e5a99c6752289bf69b @alindeman alindeman committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 .githelpers
View
4 .githelpers
@@ -29,9 +29,9 @@ 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)/' |
# Replace (2 years, 5 months) with (2 years)
- sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?)/\1)/' |
+ sed -Ee 's/(^[^<]*), [[:digit:]]+ .*months?\)/\1)/' |
# Line columns up based on } delimiter
column -s '}' -t |
# Page only if we need to

0 comments on commit eafcf8f

Please sign in to comment.