Git development
 help / color / mirror / Atom feed
* [PATCH] cg-log: Remove unpleasant DEL characters.
@ 2006-03-31  0:08 Mark Wooding
  0 siblings, 0 replies; only message in thread
From: Mark Wooding @ 2006-03-31  0:08 UTC (permalink / raw)
  To: git

From: Mark Wooding <mdw@distorted.org.uk>

There's a Bash bug (I'm running 3.1.5(1)-release from Debian testing) as
follows:

  $ foo=@; echo "<${foo:1}>" | cat -v
  <^?>

Without this fix, less gives me ugly standout `^?' markers for every
blank line in a commit message.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
---

 cg-log |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cg-log b/cg-log
index 5d5407b..b3374e4 100755
--- a/cg-log
+++ b/cg-log
@@ -181,7 +181,7 @@ process_commit_line()
 {
 	if [ "$key" = "%" ] || [ "$key" = "%$colsignoff" ]; then
 		# The fast common case
-		[ "$state" = silent ] || msg="$msg    ${rest:1}
+		[ "$state" = silent ] || msg="$msg    ${rest#?}
 "
 		return
 	fi

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-31  0:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-31  0:08 [PATCH] cg-log: Remove unpleasant DEL characters Mark Wooding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox