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
20
.config/fish/functions/__gitnow_check_if_branch_exist.fish
Normal file
20
.config/fish/functions/__gitnow_check_if_branch_exist.fish
Normal file
|
@ -0,0 +1,20 @@
|
|||
# GitNow — Speed up your Git workflow. 🐠
|
||||
# https://github.com/joseluisq/gitnow
|
||||
|
||||
function __gitnow_check_if_branch_exist
|
||||
set -l xfound 0
|
||||
|
||||
if test (count $argv) -eq 1
|
||||
set -l xbranch $argv[1]
|
||||
set -l xbranch_list (__gitnow_current_branch_list)
|
||||
|
||||
for b in $xbranch_list
|
||||
if [ "$xbranch" = "$b" ]
|
||||
set xfound 1
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
echo $xfound
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue