aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-01-19 12:36:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-01-19 12:36:22 -0200
commit3f22d064ea674c223893fff57a24a89ba299f437 (patch)
tree64c96606fe5802e652504d2fbff959916f259e4a
parente157ca4ed79288c41aa6765347558ba1b292a371 (diff)
downloadgit-3f22d064ea674c223893fff57a24a89ba299f437.tar.gz
git-3f22d064ea674c223893fff57a24a89ba299f437.tar.bz2
Merge-to alias: support for branches with slashes
-rw-r--r--gitconfig.dot.link2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitconfig.dot.link b/gitconfig.dot.link
index 14b48b6..7703c51 100644
--- a/gitconfig.dot.link
+++ b/gitconfig.dot.link
@@ -16,4 +16,4 @@
[alias]
# Thanks https://stackoverflow.com/questions/3672073/git-merge-to-another-branch
#merge-to = "!f() { git checkout $1 && git merge $2 && git checkout -; }; f"
- merge-to = "!f() { export tmp_branch=`git branch | grep '* ' | tr -d '* '`; git checkout $1 && git merge $tmp_branch && git checkout $tmp_branch; unset $tmp_branch; }; f"
+ merge-to = "!f() { export tmp_branch=`git branch | grep '* ' | tr -d '* ' | tr -d '/'`; git checkout $1 && git merge $tmp_branch && git checkout $tmp_branch; unset $tmp_branch; }; f"