mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-05-21 12:01:54 +02:00
51144, 51146: vcs_info git: stg: Extract patch descriptions
Joint work with Peter Grayson.
This commit is contained in:
parent
7cdada166c
commit
510df60dd1
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2022-12-09 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 51144, 51146:
|
||||
Functions/VCS_Info/Backends/VCS_INFO_get_data_git: vcs_info git:
|
||||
stg: Extract patch descriptions
|
||||
|
||||
2022-12-08 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 51142: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||
|
|
|
@ -388,7 +388,7 @@ elif [[ -f "${gitdir}/CHERRY_PICK_HEAD" ]]; then
|
|||
VCS_INFO_git_handle_patches
|
||||
elif command -v stg >/dev/null &&
|
||||
${vcs_comm[cmd]} show-ref --quiet refs/stacks/${gitbranch} refs/heads/${gitbranch}.stgit 2>/dev/null &&
|
||||
git_patches_applied=(${(f)"$(stg series --noprefix --applied 2>/dev/null)"})
|
||||
git_patches_applied=(${${(f)"$(stg series --noprefix --applied --description 2>/dev/null)"}/ #[#]})
|
||||
then
|
||||
# Testing for StGit patches is done after testing for all git-proper
|
||||
# patches/states. If a StGit user's repo is in one of those states, they
|
||||
|
@ -408,7 +408,7 @@ then
|
|||
# --no-prefix. The former is compatible with StGit versions going back to
|
||||
# 2008.
|
||||
if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-unapplied; then
|
||||
git_patches_unapplied=(${(f)"$(stg series --noprefix --unapplied 2>/dev/null)"})
|
||||
git_patches_unapplied=(${${(f)"$(stg series --noprefix --unapplied --description 2>/dev/null)"}/ #[#]})
|
||||
fi
|
||||
VCS_INFO_git_handle_patches
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue