Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 2/2] vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when get-unapplied hasn't been set
- X-seq: zsh-workers 49724
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Cc: "Marc Finet" <m.dreadlock@xxxxxxxxx>
- Subject: Re: [PATCH 2/2] vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when get-unapplied hasn't been set
- Date: Thu, 27 Jan 2022 18:12:18 +0000
- Archived-at: <https://zsh.org/workers/49724>
- In-reply-to: <20220127175814.10179-2-danielsh@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <20220127175814.10179-1-danielsh@tarpaulin.shahaf.local2> <20220127175814.10179-2-danielsh@tarpaulin.shahaf.local2>
Daniel Shahaf wrote on Thu, 27 Jan 2022 17:58 +00:00:
> This affects the post-quilt hook. Before this patch, if no patches have
> been applied and get-unapplied hasn't been set, the second argument to
> that hook would undergo null elision.
>
> The generation of patch subjects for the gen-applied-string,
> gen-unapplied-string, and set-patch-format hooks was unaffected since
> it was guarded by [[ -n $patches ]].
While we're on the subject of hooks, I've been wondering how to pass the
quilt patches dir path to my gen-applied-string hook. (I have a hook
that does lsdiff on patches that have no header.)
Right now I'm just using $patches, since, well, that works.
The post-quilt hook gets that value passed to it, but that doesn't help
since it runs _after_ gen-applied-string.
I suppose I could add another hook that runs sooner…
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author