From: Ori Avtalion <ori@avtalion.name>
To: git@vger.kernel.org
Subject: [PATCH] pull: remove extra space from reflog message
Date: Thu, 21 Jul 2011 00:19:03 +0300 [thread overview]
Message-ID: <4e2747c1.c6cae30a.0ff2.29e0@mx.google.com> (raw)
When executing "git pull" with no arguments, the reflog message was:
"pull : Fast-forward"
Signed-off-by: Ori Avtalion <ori@avtalion.name>
---
git-pull.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index a10b129..a305978 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -10,7 +10,11 @@ SUBDIRECTORY_OK=Yes
OPTIONS_SPEC=
. git-sh-setup
. git-sh-i18n
-set_reflog_action "pull $*"
+if [ $# -gt 0 ]; then
+ set_reflog_action "pull $*"
+else
+ set_reflog_action "pull"
+fi
require_work_tree
cd_to_toplevel
--
1.7.4.1
next reply other threads:[~2011-07-20 21:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 21:19 Ori Avtalion [this message]
2011-07-20 22:22 ` [PATCH] pull: remove extra space from reflog message Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2011-07-29 7:19 Ori Avtalion
2011-08-01 23:04 ` Junio C Hamano
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=4e2747c1.c6cae30a.0ff2.29e0@mx.google.com \
--to=ori@avtalion.name \
--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 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.