Skip to content

Commit

Permalink
Avoids "Unmatched ) or \)" error
Browse files Browse the repository at this point in the history
* GNU sed 4.2.1 on Ubuntu Precise raises an error unless the paren is escaped.
  • Loading branch information
alindeman committed Oct 2, 2012
1 parent 39d4f2a commit eafcf8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .githelpers
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eafcf8f

Please sign in to comment.