about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-03-12 18:48:51 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-03-15 00:18:21 +0000
commitaf57462beb38159637eba7004363d867f41eff50 (patch)
treea96aa0be7b999ffb1ad572f9f650eed067ead266 /Functions
parent754658aff38e1bdf487c58bec6174cbecd019d11 (diff)
downloadzsh-af57462beb38159637eba7004363d867f41eff50.tar.gz
zsh-af57462beb38159637eba7004363d867f41eff50.tar.xz
zsh-af57462beb38159637eba7004363d867f41eff50.zip
45545: vcs_info git: In interactive rebases, ignore comment lines.
Diffstat (limited to 'Functions')
-rw-r--r--Functions/VCS_Info/Backends/VCS_INFO_get_data_git4
1 files changed, 4 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 5ddce72a6..a8f49e24a 100644
--- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
+++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git
@@ -202,6 +202,10 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
         # exec: Add "exec ${command}" to $git_patches_applied.
         # (anything else): As 'exec'.
         case $p in
+            ([#]*)
+                # Comment line.  Skip.
+                continue
+                ;; 
             ((p|pick|e|edit|r|reword|f|fixup|s|squash)' '*)
                 # The line is of the form "pick $hash $subject".
                 # Just strip the verb and we're good to go.