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)



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