Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: VCS_INFO_get_data_git: add support for showing the action is cherry-pick



---
 Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
index 9364fd0..e3f84a1 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
 }
 
-- 
1.7.10.GIT



Messages sorted by: Reverse Date, Date, Thread, Author