diff options
author | Peter Grayson <pete@jpgrayson.net> | 2022-12-08 09:52:42 -0500 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2022-12-08 21:27:35 +0000 |
commit | ca7c42e1ee1706f39bbeb163ef323c819aee8357 (patch) | |
tree | 2807e99686d2b24c5ae2b09dce7abfe3d7ac4c7c /Functions/Zle/split-shell-arguments | |
parent | 2473d83521f349c743da62a2b239dc281094c1c6 (diff) | |
download | zsh-ca7c42e1ee1706f39bbeb163ef323c819aee8357.tar.gz zsh-ca7c42e1ee1706f39bbeb163ef323c819aee8357.zip |
51138: Updated StGit patch detection in vcs_info
The vcs_info patch detection code attempted to interrogate StGit patch
stack state by inspecting .git/patches/applied and
.git/patches/unapplied.
As of StGit 0.15 (2009), patch stack metadata is captured in the repo's
object database. And as of StGit 1.0 (2021), no stack or patch state is
maintained in any files in the .git/ directory.
Zsh's approach for interrogating StGit patch state is thus obsoleted.
This patch updates vcs_info to determine whether StGit is initialized on a
branch by looking at the appropriate git refs and uses StGit's prescribed
interface for interrogating applied and unapplied patch state via the `stg
series` command. This approach will work with all versions of StGit >=0.15.
Signed-off-by: Peter Grayson <pete@jpgrayson.net>
Diffstat (limited to 'Functions/Zle/split-shell-arguments')
0 files changed, 0 insertions, 0 deletions