mirror of
https://github.com/zsh-users/zsh
synced 2024-09-30 05:06:09 +00:00
51144, 51146: vcs_info git: stg: Extract patch descriptions
Joint work with Peter Grayson.
This commit is contained in:
parent
7cdada166c
commit
510df60dd1
|
@ -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>
|
2022-12-08 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
* 51142: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
* 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
|
VCS_INFO_git_handle_patches
|
||||||
elif command -v stg >/dev/null &&
|
elif command -v stg >/dev/null &&
|
||||||
${vcs_comm[cmd]} show-ref --quiet refs/stacks/${gitbranch} refs/heads/${gitbranch}.stgit 2>/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
|
then
|
||||||
# Testing for StGit patches is done after testing for all git-proper
|
# 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
|
# 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
|
# --no-prefix. The former is compatible with StGit versions going back to
|
||||||
# 2008.
|
# 2008.
|
||||||
if zstyle -t ":vcs_info:${vcs}:${usercontext}:${rrn}" get-unapplied; then
|
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
|
fi
|
||||||
VCS_INFO_git_handle_patches
|
VCS_INFO_git_handle_patches
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue