Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
StGit 2.0 and vcs_info (was: Re: [PATCH] Remove _stgit completion script)
- X-seq: zsh-workers 50854
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Peter Grayson" <pete@xxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: StGit 2.0 and vcs_info (was: Re: [PATCH] Remove _stgit completion script)
- Date: Mon, 31 Oct 2022 10:13:50 +0000
- Archived-at: <https://zsh.org/workers/50854>
- Feedback-id: i425e4195:Fastmail
- In-reply-to: <20221031091933.GE27622@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <20221025204319.1709205-1-pete@jpgrayson.net> <20221031091933.GE27622@tarpaulin.shahaf.local2>
Daniel Shahaf wrote on Mon, 31 Oct 2022 09:19 +00:00:
> Peter Grayson wrote on Tue, Oct 25, 2022 at 16:43:21 -0400:
>> Also, the _stgit completions that ship with zsh, which dynamically parse
>> StGit's help output, will be broken by the upcoming StGit 2.0 release
>> due to changes in the help output.
>>
>
> StGit is also used by vcs_info, here:
>
> https://github.com/zsh-users/zsh/blob/b76dcecfe3461aa9a9e29dffe2484f097611f9ff/Functions/VCS_Info/Backends/VCS_INFO_get_data_git#L187-L194
>
> (There doesn't seem to be StGit-specific code elsewhere in the file or
> in the sibling file VCS_INFO_detect_git.)
>
> Any chance that someone who uses both StGit and zsh could review that?
> That code is supposed to populate $gitmisc (and thus the %m expando)
> with information about pushed and not-yet-pushed patches.
>
> To test that:
>
> [[[
> autoload vcs_info
> precmd() { vcs_info }
Need to emit ${vcs_info_msg_0_} as well (see Misc/vcs_info-examples).
> zstyle ':vcs_info:*' formats %m
> zstyle ':vcs_info:*' actionformats %m
> ]]]
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author