mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
36832: vcs_info: Remove dependency on "seq"
The "seq" utility is usually available on GNU systems only. This exchanges calls to seq with pure zsh features. Also: Less forks are good.
This commit is contained in:
parent
7a1678767f
commit
e245dd7193
2 changed files with 6 additions and 2 deletions
|
|
@ -3,6 +3,9 @@
|
|||
* 36830: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||
vcs_info: Silence an error message with new git versions
|
||||
|
||||
* 36832: Functions/VCS_Info/Backends/VCS_INFO_get_data_git:
|
||||
vcs_info: Remove dependency on "seq"
|
||||
|
||||
2015-10-06 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 36780: Src/params.c: ensure HOME parameter is unset if
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ elif [[ -d "${gitdir}/rebase-apply" ]]; then
|
|||
if [[ -f $next ]]; then
|
||||
local cur=$(< $next)
|
||||
local p subject
|
||||
for p in $(seq $(($cur - 1))); do
|
||||
for ((p = 1; p < cur; p++)); do
|
||||
git_patches_applied+=("$(printf "%04d" $p) ?")
|
||||
done
|
||||
if [[ -f "${patchdir}/msg-clean" ]]; then
|
||||
|
|
@ -245,7 +245,8 @@ elif [[ -d "${gitdir}/rebase-apply" ]]; then
|
|||
git_patches_applied+=("?")
|
||||
fi
|
||||
fi
|
||||
git_patches_unapplied=($(seq $cur $(< "${patchdir}/last")))
|
||||
local last="$(< "${patchdir}/last")"
|
||||
git_patches_unapplied=( {$cur..$last} )
|
||||
fi
|
||||
|
||||
VCS_INFO_git_handle_patches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue