diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-12-11 04:01:45 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-12-16 10:48:10 +0000 |
commit | 816084c0acc99cc67cdb0706ab295e107b906e4b (patch) | |
tree | b4c9b3790ee0d248cc687dfdda3fc09e8585a986 /Functions | |
parent | 6bdb2e1debbaeefb71dc8014b5caa01d8ad3a675 (diff) | |
download | zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.tar.gz zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.tar.xz zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.zip |
40149: vcs_info git: Avoid a fork.
Diffstat (limited to 'Functions')
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git index 65d8cb182..63109aa46 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_get_data_git +++ b/Functions/VCS_Info/Backends/VCS_INFO_get_data_git @@ -221,7 +221,7 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then git_patches_applied+=("$p") done if [[ -f "${patchdir}/git-rebase-todo" ]] ; then - git_patches_unapplied=(${(f)"$(grep -v '^$' "${patchdir}/git-rebase-todo" | grep -v '^#')"}) + git_patches_unapplied=( ${${(f)${"$(<"${patchdir}/git-rebase-todo")"}}:#[#]*} ) fi VCS_INFO_git_handle_patches elif [[ -d "${gitdir}/rebase-apply" ]]; then |