AutoYADM commit: 2025-03-28 18:45:08
This commit is contained in:
parent
393973db39
commit
4606237776
78 changed files with 2856 additions and 1 deletions
16
.config/fish/functions/__gitnow_gitflow_branch.fish
Normal file
16
.config/fish/functions/__gitnow_gitflow_branch.fish
Normal file
|
@ -0,0 +1,16 @@
|
|||
# GitNow — Speed up your Git workflow. 🐠
|
||||
# https://github.com/joseluisq/gitnow
|
||||
|
||||
function __gitnow_gitflow_branch -a xprefix -a xbranch
|
||||
set xbranch (__gitnow_slugify $xbranch)
|
||||
set -l xbranch_full "$xprefix/$xbranch"
|
||||
set -l xfound (__gitnow_check_if_branch_exist $xbranch_full)
|
||||
|
||||
if test $xfound -eq 1
|
||||
echo "Branch `$xbranch_full` already exists. Nothing to do."
|
||||
else
|
||||
command git stash
|
||||
__gitnow_new_branch_switch "$xbranch_full"
|
||||
command git stash pop
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue