diff options
author | Karel Kočí <karel.koci@nic.cz> | 2018-01-31 13:35:44 +0100 |
---|---|---|
committer | Karel Kočí <karel.koci@nic.cz> | 2018-01-31 13:35:44 +0100 |
commit | c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf (patch) | |
tree | 489cbae96da928918833eb956fc77abeafff67bd /shellrc.d | |
parent | 47d3b6fc1966df43b37751165d6fa4229904c0fa (diff) | |
download | shellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.tar.gz shellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.tar.bz2 shellrc-c9fb5ef4185d4e7f2fab08a59999ef576c8b17cf.zip |
Change gitbnew to use HEAD instead of master
Diffstat (limited to 'shellrc.d')
-rw-r--r-- | shellrc.d/common | 4 |
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" |