From: Aaron Plattner <aplattner@nvidia.com>
To: <git@vger.kernel.org>
Cc: <jkain@nvidia.com>
Subject: [PATCH] checkout: add a space between the commit and "..."
Date: Tue, 28 Sep 2010 15:23:32 -0700 [thread overview]
Message-ID: <20100928222332.GA28859@soprano.nvidia.com> (raw)
Switching to a detached head prints something like
HEAD is now at 9d14017... dir.c: squelch false uninitialized memory warning
These dots get selected when you double-click on the abbreviated
commit hash, which makes it annoying to copy and paste.
Add a space between the abbreviated commit and the dots, to improve
copy and pasteability.
Reported-by: Joe Kain <jkain@nvidia.com>
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
---
builtin/checkout.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c
index a54583b..ca1cae3 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -303,7 +303,7 @@ static void describe_detached_head(char *msg, struct commit *commit)
struct pretty_print_context ctx = {0};
parse_commit(commit);
pretty_print_commit(CMIT_FMT_ONELINE, commit, &sb, &ctx);
- fprintf(stderr, "%s %s... %s\n", msg,
+ fprintf(stderr, "%s %s ... %s\n", msg,
find_unique_abbrev(commit->object.sha1, DEFAULT_ABBREV), sb.buf);
strbuf_release(&sb);
}
--
1.7.0.4
next reply other threads:[~2010-09-28 22:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-28 22:23 Aaron Plattner [this message]
2010-09-28 22:40 ` [PATCH] checkout: add a space between the commit and "..." Brandon Casey
2010-09-28 23:34 ` Kevin Ballard
2010-09-28 23:38 ` Aaron Plattner
2010-09-29 0:45 ` Brandon Casey
2010-09-29 7:20 ` Johannes Sixt
2010-09-29 13:13 ` Brandon Casey
2010-09-29 21:48 ` Andreas Schwab
2010-09-29 1:49 ` Santi Béjar
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=20100928222332.GA28859@soprano.nvidia.com \
--to=aplattner@nvidia.com \
--cc=git@vger.kernel.org \
--cc=jkain@nvidia.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.