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



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