From: Fredrik Kuivinen <freku045@student.liu.se>
To: junkio@cox.net
Cc: git@vger.kernel.org
Subject: [PATCH] git-reset --hard: use quotes when we tell the user what HEAD was reset to
Date: Sat, 06 Jan 2007 11:23:22 +0100 [thread overview]
Message-ID: <20070106102322.7468.57615.stgit@c165> (raw)
Idea and motivating example from Andy Whitcroft:
apw@pinky$ git checkout -b bar master
apw@pinky$ git reset --hard ac9c1108d8915f0937795e354ad72c4ae6890a3f
HEAD is now at ac9c110... git-fetch: remove .keep file at the end.
Huh, fetch? Remove what .keep file? Did I do a fetch? What?
I think we need to delimit the name better, probabally we need to quote
it. Perhaps something like:
HEAD is now at ac9c110: "git-fetch: remove .keep file at the end".
Signed-off-by: Fredrik Kuivinen <frekui@gmail.com>
---
git-reset.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-reset.sh b/git-reset.sh
index a969370..9b49883 100755
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -90,7 +90,8 @@ case "$reset_type" in
test $update_ref_status = 0 && {
echo -n "HEAD is now at "
GIT_PAGER= git log --max-count=1 --pretty=oneline \
- --abbrev-commit HEAD
+ --abbrev-commit HEAD |
+ sed 's/\([0-9a-f.]*\) \(.*\)/\1: "\2"/'
}
;;
--soft )
next reply other threads:[~2007-01-06 10:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-06 10:23 Fredrik Kuivinen [this message]
2007-01-06 19:26 ` [PATCH] git-reset --hard: use quotes when we tell the user what HEAD was reset to Junio C Hamano
2007-01-07 12:56 ` Fredrik Kuivinen
2007-01-07 21:10 ` Junio C Hamano
2007-01-08 8:33 ` Andy Whitcroft
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=20070106102322.7468.57615.stgit@c165 \
--to=freku045@student.liu.se \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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.