pull: remove extra space from reflog message
PATCH 1/1 pull: remove extra space from reflog message
When executing "git pull" with no arguments, the reflog message was:
"pull : Fast-forward"
Signed-off-by Ori Avtalion <[email protected]>
--- git-pull.sh | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
git-pull.sh +5 -1
@@ -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
Signature · 1 line
1.7.4.1
git-pull.sh SUBDIRECTORY_OK=Yes · line 17
Quoted 6 lines · Ori Avtalion
git-pull.sh +5
-1-set_reflog_action "pull $*" +if [ $# -gt 0 ]; then + set_reflog_action "pull $*" +else + set_reflog_action "pull" +fi
Or more tersely:
set_reflog_action "pull${1+ $*}"
Andreas.
Signature · 3 lines
Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."