From: Mark Wooding <mdw@distorted.org.uk>
To: git@vger.kernel.org
Subject: [PATCH] cg-log: Remove unpleasant DEL characters.
Date: Fri, 31 Mar 2006 01:08:13 +0100 [thread overview]
Message-ID: <20060331000813.18895.46855.stgit@metalzone.distorted.org.uk> (raw)
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
reply other threads:[~2006-03-31 0:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060331000813.18895.46855.stgit@metalzone.distorted.org.uk \
--to=mdw@distorted.org.uk \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox