1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00

35204: fix broken __git_recent_commits from previous commit

This fixes 1e7bb4a: newlines need to be kept (from the "%d" part).
This commit is contained in:
Daniel Hahler 2015-05-19 06:35:26 +02:00
parent 1e7bb4a8f8
commit d0057538d3
2 changed files with 4 additions and 1 deletions

View file

@ -3,6 +3,9 @@
* 35164: Completion/Unix/Command/_git: fix $pipestatus with
__git_commit_objects/__git_recent_commits.
* 35204: Completion/Unix/Command/_git: fix quoting in previous commit
commit (35164).
2015-05-19 Daniel Shahaf <d.s@daniel.shahaf.name>
* users/20222: Completion/Unix/Command/_git: users/20222:

View file

@ -5676,7 +5676,7 @@ __git_recent_commits () {
# Careful: most %d will expand to the empty string. Quote properly!
# NOTE: we could use %D directly, but it's not available in git 1.9.1 at least.
commits=(${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"})
commits=("${(f)"$(_call_program commits git --no-pager log -20 --format='%h%n%d%n%s\ \(%cr\)')"}")
__git_command_successful $pipestatus || return 1
for i j k in "$commits[@]" ; do