mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
30639: Add support for showing the current action is cherry-pick to vcs_info git backend
This commit is contained in:
parent
ba88c42a5b
commit
0c8625299a
2 changed files with 16 additions and 1 deletions
|
@ -52,6 +52,17 @@ VCS_INFO_git_getaction () {
|
|||
printf '%s' "bisect"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ -f "${gitdir}/CHERRY_PICK_HEAD" ]] ; then
|
||||
if [[ -d "${gitdir}/sequencer" ]] ; then
|
||||
gitaction=cherry-seq
|
||||
else
|
||||
gitaction=cherry
|
||||
fi
|
||||
printf '%s' ${gitaction}
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue