From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27551 invoked by alias); 19 May 2015 04:37:08 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35204 Received: (qmail 27928 invoked from network); 19 May 2015 04:37:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= x-mailer:message-id:date:date:subject:subject:from:from:received :received:received; s=postfix2; t=1432010224; bh=BoeH6qwk7uWFyu5 a7gPTaN4ok9GV1JcYUkEgMEdKdGo=; b=T6WQrYenh2nvxLdQ88ffwS/1mRsH3Fk B651GHFWrF1CDCTJtwXpez3OSitbMnbGuVubHzinsp9nt1pr2tYPvtRpk0xjBv1/ P1A2ecUNmHiRVziFhcmGRvpyQWnL6k/QzrBfodpOsZvhX2glfR9fdvY8HlgpK6Tn m0RgqWWmVHXo= From: Daniel Hahler To: zsh-workers@zsh.org Subject: [PATCH] Fix broken __git_recent_commits from previous commit Date: Tue, 19 May 2015 06:37:02 +0200 Message-Id: <1432010222-5106-1-git-send-email-genml+zsh-workers@thequod.de> X-Mailer: git-send-email 2.4.0.dirty From: Daniel Hahler This fixes 1e7bb4a: newlines need to be kept (from the "%d" part). --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 6901b42..18d8954 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -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 -- 2.4.0.dirty