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 | |
parent | 6bdb2e1debbaeefb71dc8014b5caa01d8ad3a675 (diff) | |
download | zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.tar.gz zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.tar.xz zsh-816084c0acc99cc67cdb0706ab295e107b906e4b.zip |
40149: vcs_info git: Avoid a fork.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Functions/VCS_Info/Backends/VCS_INFO_get_data_git | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 53d69d205..8ee4921cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-12-16 Daniel Shahaf <d.s@daniel.shahaf.name> + * 40149: Functions/VCS_Info/Backends/VCS_INFO_get_data_git: + vcs_info git: Avoid a fork. + * 40203: Test/B03print.ztst: Resolve 'printf --' question from grandparent commit (thanks Chet). 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 |