mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-25 17:20:25 +02:00
unposted: Indicate which use-case each branch handles.
This commit is contained in:
parent
6a5c38626b
commit
f9952301b2
2 changed files with 6 additions and 1 deletions
|
|
@ -183,6 +183,7 @@ then
|
|||
git_patches_unapplied=(${(f)"$(< "${patchdir}/unapplied")"})
|
||||
VCS_INFO_git_handle_patches
|
||||
elif [[ -d "${gitdir}/rebase-merge" ]]; then
|
||||
# 'git rebase -i'
|
||||
patchdir="${gitdir}/rebase-merge"
|
||||
local p
|
||||
[[ -f "${patchdir}/done" ]] &&
|
||||
|
|
@ -199,12 +200,13 @@ elif [[ -d "${gitdir}/rebase-merge" ]]; then
|
|||
fi
|
||||
VCS_INFO_git_handle_patches
|
||||
elif [[ -d "${gitdir}/rebase-apply" ]]; then
|
||||
# Fake patch names for all but current patch
|
||||
# 'git rebase' without -i
|
||||
patchdir="${gitdir}/rebase-apply"
|
||||
local next="${patchdir}/next"
|
||||
if [[ -f $next ]]; then
|
||||
local cur=$(< $next)
|
||||
local p subject
|
||||
# Fake patch names for all but current patch
|
||||
for ((p = 1; p < cur; p++)); do
|
||||
printf -v "git_patches_applied[$p]" "%04d ?" "$p"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue