Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit eafcf8f553864bf5539f36e5a99c6752289bf69b 1 parent 39d4f2a
@alindeman alindeman authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.