Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
pull: replace unnecessary sed invocation
author
Stephen Boyd
<bebarino@gmail.com>
Thu, 18 Mar 2010 05:10:45 +0000
(22:10 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 20 Mar 2010 14:25:02 +0000
(07:25 -0700)
Getting the shortened branch name is as easy as using the shell's
parameter expansion.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-pull.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7d182f5
)
diff --git
a/git-pull.sh
b/git-pull.sh
index 38331a861106c63bf5f421dbe03f4aafe949812e..246a3a4b373dba87877204c90c9f808dfa93c45c 100755
(executable)
--- a/
git-pull.sh
+++ b/
git-pull.sh
@@
-41,7
+41,7
@@
strategy_args= diffstat= no_commit= squash= no_ff= ff_only=
log_arg= verbosity=
merge_args=
curr_branch=$(git symbolic-ref -q HEAD)
-curr_branch_short=
$(echo "$curr_branch" | sed "s|refs/heads/||")
+curr_branch_short=
"${curr_branch#refs/heads/}"
rebase=$(git config --bool branch.$curr_branch_short.rebase)
while :
do