From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24882 invoked by alias); 1 Feb 2017 17:41:01 -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: 40476 Received: (qmail 11226 invoked from network); 1 Feb 2017 17:41:01 -0000 X-Qmail-Scanner-Diagnostics: from out1-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.25):SA:0(-0.7/5.0):. Processed in 1.565708 secs); 01 Feb 2017 17:41:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=H0a 4anHNzh0jQ+uq375h3X5h5fY=; b=jbbvx+PLxFVjoslOL+esInJECcD+0ecvHb/ 05V9Ppm+uPY1QRordlERG613KdXohRJkrHuuHi1pAc/c2q2mIFcPPwWQTuDcvUm5 OJPlhBMezb60pPmLPqqmd4HCjJIFYWBFID8EFvxS9QKkUotEqAbqkQCGhEfndXAO gassW03Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=H0 a4anHNzh0jQ+uq375h3X5h5fY=; b=TEYwuGNXe+RcCXf5rePjnVokZAEXM9GLfZ ReNd+bcUqPZ1voi4s7wXtj3JQTeyOfr9MIISPkNYWO1pYf+Gi3KmkIfhIgLeTB39 BWRtva895k8eElp00JLGVF/5HPRp+54jwUS3iZflb9flFK6bwVQuLC2UMIrGf5oy S2ONpoUWo= X-ME-Sender: X-Sasl-enc: w7LVluOwDhalyaHLjNKc2NVvFPZhELF0jsO9FPHZLzEQ 1485970849 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] vcs_info $backend_misc: Document at the right point, provide in quilt 'standalone' mode. Date: Wed, 1 Feb 2017 17:36:54 +0000 Message-Id: <1485970614-6925-1-git-send-email-danielsh@fujitsu.shahaf.local2> X-Mailer: git-send-email 2.1.4 --- Doc/Zsh/contrib.yo | 6 +++--- Functions/VCS_Info/VCS_INFO_quilt | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 8f79694..79e0262 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -1207,6 +1207,8 @@ item(tt(nopatch-format))( This pair of styles format the patch information used by the tt(%m) expando in formats and actionformats for the tt(git) and tt(hg) backends. The value is subject to certain tt(%)-expansions described below. +The expanded value is made available in the global tt(backend_misc) array as +tt(${backend_misc[patches]}) (also if a tt(set-patch-format) hook is used). ) kindex(get-unapplied) item(tt(get-unapplied))( @@ -1612,9 +1614,7 @@ so far in the opposite order, which means that the first argument is the top-most patch and so forth. When setting tt(ret) to non-zero, the string in -tt(${hook_com[applied-string]}) will be used in the tt(%m) escape in -tt(formats) and tt(actionformats); it will be available in the global -tt(backend_misc) array as tt($backend_misc[patches]}); and it will be +tt(${hook_com[applied-string]}) will be available as tt(%p) in the tt(patch-format) and tt(nopatch-format) styles. ) item(tt(gen-unapplied-string))( diff --git a/Functions/VCS_Info/VCS_INFO_quilt b/Functions/VCS_Info/VCS_INFO_quilt index aed9f0c..d6b7c2f 100644 --- a/Functions/VCS_Info/VCS_INFO_quilt +++ b/Functions/VCS_Info/VCS_INFO_quilt @@ -184,6 +184,7 @@ function VCS_INFO_quilt() { case ${mode} in (standalone) + backend_misc[patches]=${qstring} VCS_INFO_formats '' '' "${root}" '' '' '' "${qstring}" VCS_INFO_set ;;