From af57462beb38159637eba7004363d867f41eff50 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Thu, 12 Mar 2020 18:48:51 +0000 Subject: 45545: vcs_info git: In interactive rebases, ignore comment lines. --- ChangeLog | 5 +++++ Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6fdaccb7f..fa59d44e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-15 Daniel Shahaf + + * 45545: Functions/VCS_Info/Backends/VCS_INFO_get_data_git: + vcs_info git: In interactive rebases, ignore comment lines. + 2020-03-13 dana * unposted: Completion/Unix/Command/_git: Fix copy/paste error 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. -- cgit 1.4.1