diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2013-03-10 12:47:39 +0000 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2013-03-10 12:47:39 +0000 |
| commit | 0c8625299ae79759ef909c0909b8f7e9b9003d30 (patch) | |
| tree | 612c894d1a89dad4590c869e502ad3708e195eed /Functions/VCS_Info/Backends | |
| parent | 30490: _java: -keystore takes a file argument, so complete files (diff) | |
| download | zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar.gz zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar.bz2 zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar.lz zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar.xz zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.tar.zst zsh-0c8625299ae79759ef909c0909b8f7e9b9003d30.zip | |
30639: Add support for showing the current action is cherry-pick to vcs_info git backend
Diffstat (limited to 'Functions/VCS_Info/Backends')
| -rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index e40571a0e..787e76302 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -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 } |
