mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
unposted: vcs_info git: Handle rebase-apply sequences with >=10000 patches.
Review-by: Frank Terbeck
This commit is contained in:
parent
d9237ccdbf
commit
f71de84f1d
2 changed files with 9 additions and 3 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2016-12-04 Daniel Shahaf <d.s@daniel.shahaf.name>
|
2016-12-04 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||||
|
|
||||||
|
* unposted: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||||
|
vcs_info git: Handle rebase-apply sequences with >=10000 patches.
|
||||||
|
|
||||||
* 40074: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
* 40074: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||||
vcs_info git: rfc822-unfold rebase-apply patch subjects when
|
vcs_info git: rfc822-unfold rebase-apply patch subjects when
|
||||||
msg-clean is unavailable.
|
msg-clean is unavailable.
|
||||||
|
|
|
||||||
|
|
@ -232,14 +232,17 @@ elif [[ -d "${gitdir}/rebase-apply" ]]; then
|
||||||
local cur=$(< $next)
|
local cur=$(< $next)
|
||||||
local p subject
|
local p subject
|
||||||
for ((p = 1; p < cur; p++)); do
|
for ((p = 1; p < cur; p++)); do
|
||||||
git_patches_applied+=("$(printf "%04d" $p) ?")
|
printf -v "git_patches_applied[$p]" "%04d ?" "$p"
|
||||||
done
|
done
|
||||||
if [[ -f "${patchdir}/msg-clean" ]]; then
|
if [[ -f "${patchdir}/msg-clean" ]]; then
|
||||||
subject="${$(< "${patchdir}/msg-clean")[(f)1]}"
|
subject="${$(< "${patchdir}/msg-clean")[(f)1]}"
|
||||||
elif [[ -f "${patchdir}/${(l:4::0:)cur}" ]]; then
|
elif local this_patch_file
|
||||||
|
printf -v this_patch_file "%s/%04d" "${patchdir}" "${cur}"
|
||||||
|
[[ -f $this_patch_file ]]
|
||||||
|
then
|
||||||
() {
|
() {
|
||||||
local REPLY
|
local REPLY
|
||||||
VCS_INFO_patch2subject "${patchdir}/${(l:4::0:)cur}"
|
VCS_INFO_patch2subject "${this_patch_file}"
|
||||||
subject=$REPLY
|
subject=$REPLY
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue