From 0c8625299ae79759ef909c0909b8f7e9b9003d30 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 10 Mar 2013 12:47:39 +0000 Subject: 30639: Add support for showing the current action is cherry-pick to vcs_info git backend --- Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Functions') 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 } -- cgit 1.4.1