Skip to contentSkip to conversation

pull: remove extra space from reflog message

PATCH In review Ori Avtalion 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pull: remove extra space from reflog message

When executing "git pull" with no arguments, the reflog message was:
"pull : Fast-forward"

---

This is a correction of my earlier patch, based on the suggestion by Andreas Schwab

 git-pull.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-pull.sh +1 -1
index a10b129..eec3a07 100755
@@ -10,7 +10,7 @@ SUBDIRECTORY_OK=Yes
 OPTIONS_SPEC=
 . git-sh-setup
 . git-sh-i18n
-set_reflog_action "pull $*"
+set_reflog_action "pull${1+ $*}"
 require_work_tree
 cd_to_toplevel
 
Signature · 1 line
1.7.4.1
#1 lore raw
Quoted 17 lines · Ori Avtalion

When executing "git pull" with no arguments, the reflog message was:
"pull : Fast-forward"

---

This is a correction of my earlier patch, based on the suggestion by Andreas Schwab

 git-pull.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
git-pull.sh +0 -0
index a10b129..eec3a07 100755

git-pull.sh SUBDIRECTORY_OK=Yes · line 15

Quoted 7 lines
git-pull.sh +1 -1
@@ -10,7 +10,7 @@ SUBDIRECTORY_OK=Yes
 OPTIONS_SPEC=
 . git-sh-setup
 . git-sh-i18n
-set_reflog_action "pull $*"
+set_reflog_action "pull${1+ $*}"
 require_work_tree
 cd_to_toplevel

Thanks, will queue.

I wonder if we have any test in the contents of the reflog messages, though.