🐛 Fix gwip function
This commit is contained in:
parent
fc242d841e
commit
c9d2adb5d5
1 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@
|
||||||
abbr -a g --position command git
|
abbr -a g --position command git
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Functions #
|
# Functions #
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
function git_develop_branch
|
function git_develop_branch
|
||||||
command git rev-parse --git-dir &>/dev/null || return
|
command git rev-parse --git-dir &>/dev/null || return
|
||||||
set -l branch
|
set -l branch
|
||||||
|
|
||||||
for branch in dev devel develop development
|
for branch in dev devel develop development
|
||||||
if command git show-ref -q --verify refs/heads/$branch
|
if command git show-ref -q --verify refs/heads/$branch
|
||||||
echo $branch
|
echo $branch
|
||||||
|
@ -158,10 +158,10 @@ abbr -a gstas --position command "git stash show --text"
|
||||||
function gwip
|
function gwip
|
||||||
git add -A
|
git add -A
|
||||||
git rm (git ls-files --deleted) 2> /dev/null
|
git rm (git ls-files --deleted) 2> /dev/null
|
||||||
git commit -- -no-verify --no-gpg-sign --message "🚧 --wip-- [skip ci]"
|
git commit --no-verify --no-gpg-sign --message "🚧 --wip-- [skip ci]"
|
||||||
end
|
end
|
||||||
|
|
||||||
function unwip
|
function gunwip
|
||||||
git rev-list --max-count=1 --format="%s" HEAD | \
|
git rev-list --max-count=1 --format="%s" HEAD | \
|
||||||
grep -q "🚧 --wip-- [skip ci]" \
|
grep -q "🚧 --wip-- [skip ci]" \
|
||||||
&& git reset HEAD~1
|
&& git reset HEAD~1
|
||||||
|
|
Loading…
Reference in a new issue