aboutsummaryrefslogtreecommitdiff
path: root/shellrc.d/common
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2018-01-31 13:35:44 +0100
committerKarel Kočí <karel.koci@nic.cz>2018-01-31 13:35:44 +0100
commitc9fb5ef4185d4e7f2fab08a59999ef576c8b17cf (patch)
tree489cbae96da928918833eb956fc77abeafff67bd /shellrc.d/common
parent47d3b6fc1966df43b37751165d6fa4229904c0fa (diff)
downloadshellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.tar.gz
shellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.tar.bz2
shellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.zip
Change gitbnew to use HEAD instead of master
Diffstat (limited to 'shellrc.d/common')
-rw-r--r--shellrc.d/common4
1 files changed, 2 insertions, 2 deletions
diff --git a/shellrc.d/common b/shellrc.d/common
index ce744ea..bbe13d6 100644
--- a/shellrc.d/common
+++ b/shellrc.d/common
@@ -59,9 +59,9 @@ gitbmerge() {
)
}
-# Create new branch from master
+# Create new branch from HEAD
gitbnew() {
- git branch "$1" master
+ git branch "$1" HEAD
local NW="$(git rev-parse --show-toplevel)-$1"
git worktree add "$NW" $1
cd "$NW"