commit - c623f22185d49aeb866ddc765ad0becfb2052e35
commit + 2fed5287a0b2737115e6d0dcad77a6b371206cb1
blob - 58bd8cfd19c7fe4497faed3ae1bc31b8c288fc98
blob + 4281311847e1767c625823074c5208dc9f177123
--- regress/cmdline/blame.sh
+++ regress/cmdline/blame.sh
return 1
fi
- jot 8 > $testroot/wt/alpha
+ seq 8 > $testroot/wt/alpha
(cd $testroot/wt && got commit -m "change 1" > /dev/null)
local commit1=`git_show_head $testroot/repo`
local short_commit1=`trim_obj_id 32 $commit1`
return 1
fi
- jot 8 > $testroot/wt/alpha
+ seq 8 > $testroot/wt/alpha
(cd $testroot/wt && got commit -m "change 1" > /dev/null)
local commit1=`git_show_head $testroot/repo`
local short_commit1=`trim_obj_id 32 $commit1`
local commit2=`git_show_head $testroot/repo`
local short_commit2=`trim_obj_id 32 $commit2`
- jot 2 > $testroot/wt/alpha
+ seq 2 > $testroot/wt/alpha
echo foo >> $testroot/wt/alpha
echo bar >> $testroot/wt/alpha
echo baz >> $testroot/wt/alpha
- jot 8 6 8 1 >> $testroot/wt/alpha
+ seq 6 8 >> $testroot/wt/alpha
(cd $testroot/wt && got commit -m "change 3" > /dev/null)
local commit3=`git_show_head $testroot/repo`
local short_commit3=`trim_obj_id 32 $commit3`
return 1
fi
- jot 8 > $testroot/wt/alpha
+ seq 8 > $testroot/wt/alpha
(cd $testroot/wt && got commit -m "change 1" > /dev/null)
local commit1=`git_show_head $testroot/repo`
local short_commit1=`trim_obj_id 32 $commit1`
local commit2=`git_show_head $testroot/repo`
local short_commit2=`trim_obj_id 32 $commit2`
- jot 2 > $testroot/wt/alpha
+ seq 2 > $testroot/wt/alpha
echo foo >> $testroot/wt/alpha
echo bar >> $testroot/wt/alpha
echo baz >> $testroot/wt/alpha
- jot 8 3 8 1 >> $testroot/wt/alpha
+ seq 3 8 >> $testroot/wt/alpha
(cd $testroot/wt && got commit -m "change 3" > /dev/null)
local commit3=`git_show_head $testroot/repo`
local short_commit3=`trim_obj_id 32 $commit3`
blob - 0e7cf31f819a9e93d3c0add3720b63ae6d10314b
blob + 00f32bb02afd89bd6cb1db91f4b9385e33bd5617
--- regress/cmdline/cleanup.sh
+++ regress/cmdline/cleanup.sh
touch "${kpack%.pack}.keep"
# create a few pack files with different objects
- for i in `jot 5`; do
+ for i in `seq 5`; do
echo "alpha $i" > $testroot/repo/alpha
git_commit "$testroot/repo" -m "edit #$i"
gotadmin pack -r "$testroot/repo" >/dev/null
fi
# create one more non-redundant pack
- for i in `jot 5`; do
+ for i in `seq 5`; do
echo "alpha again $i" > $testroot/repo/alpha
git_commit "$testroot/repo" -m "edit $i"
done
# create some commits on a separate branch
git -C "$testroot/repo" checkout -q -b newbranch
- for i in `jot 5`; do
+ for i in `seq 5`; do
echo "alpha $i" > $testroot/repo/alpha
git_commit "$testroot/repo" -m "edit #$i"
gotadmin pack -r "$testroot/repo" >/dev/null
blob - d4500f1b7676ed3946c82efc8e8d7f50755569bc
blob + 705adb527c252d6e5694bcd07fc8aa74e35632de
--- regress/cmdline/patch.sh
+++ regress/cmdline/patch.sh
return 1
fi
- jot 100 > $testroot/wt/numbers
+ seq 100 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
>/dev/null
ret=$?
return 1
fi
- jot 5 > $testroot/wt/eta.expected
+ seq 5 > $testroot/wt/eta.expected
cmp -s $testroot/wt/eta.expected $testroot/wt/eta
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 103 | sed -e 's/^6$/six/' -e 's/60/sixty/' \
+ seq 103 | sed -e 's/^6$/six/' -e 's/60/sixty/' \
> $testroot/wt/numbers.expected
cmp -s $testroot/wt/numbers.expected $testroot/wt/numbers
ret=$?
return 1
fi
- jot 100 > $testroot/wt/numbers
+ seq 100 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m 'add numbers') \
>/dev/null
ret=$?
93
EOF
- jot 100 > $testroot/wt/numbers
+ seq 100 > $testroot/wt/numbers
ed -s "$testroot/wt/numbers" <<EOF
1,10d
-50r !jot 20
+50r !seq 20
w
q
EOF
return 1
fi
- jot 10 > $testroot/wt/numbers
+ seq 10 > $testroot/wt/numbers
chmod +x $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
> /dev/null
return 1
fi
- jot 10 | sed 's/4/four/g' > $testroot/wt/numbers
+ seq 10 | sed 's/4/four/g' > $testroot/wt/numbers
(cd $testroot/wt && got diff > $testroot/old.diff \
&& got revert numbers) >/dev/null
return 1
fi
- jot 10 | sed 's/6/six/g' > $testroot/wt/numbers
+ seq 10 | sed 's/6/six/g' > $testroot/wt/numbers
(cd $testroot/wt && got commit -m 'edit numbers') \
> /dev/null
ret=$?
return 1
fi
- jot 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
+ seq 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
cmp -s $testroot/wt/numbers $testroot/wt/numbers.expected
ret=$?
if [ $ret -ne 0 ]; then
test_patch_merge_gitdiff() {
local testroot=`test_init patch_merge_gitdiff`
- jot 10 > $testroot/repo/numbers
+ seq 10 > $testroot/repo/numbers
git -C $testroot/repo add numbers && \
git_commit $testroot/repo -m "nums"
ret=$?
return 1
fi
- jot 10 | sed 's/4/four/g' > $testroot/repo/numbers
+ seq 10 | sed 's/4/four/g' > $testroot/repo/numbers
git -C $testroot/repo diff > $testroot/old.diff
ret=$?
if [ $ret -ne 0 ]; then
fi
# restore numbers
- jot 10 > $testroot/repo/numbers
+ seq 10 > $testroot/repo/numbers
- jot 10 | sed 's/6/six/g' > $testroot/repo/numbers
+ seq 10 | sed 's/6/six/g' > $testroot/repo/numbers
git -C $testroot/repo add numbers && \
git_commit $testroot/repo -m "edit"
ret=$?
return 1
fi
- jot 10 > $testroot/wt/numbers
+ seq 10 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
>/dev/null
ret=$?
local commit_id=`git_show_head $testroot/repo`
- jot 10 | sed s/4/four/ > $testroot/wt/numbers
+ seq 10 | sed s/4/four/ > $testroot/wt/numbers
# get rid of the metadata
(cd $testroot/wt && got diff | sed -n '/^---/,$p' > patch) \
>/dev/null
- jot 10 | sed s/6/six/ > $testroot/wt/numbers
+ seq 10 | sed s/6/six/ > $testroot/wt/numbers
(cd $testroot/wt && got commit -m 'edit numbers') >/dev/null
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
+ seq 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
cmp -s $testroot/wt/numbers $testroot/wt/numbers.expected
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 10 > $testroot/wt/numbers
+ seq 10 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
> /dev/null
ret=$?
local commit_id=`git_show_head $testroot/repo`
- jot 10 | sed 's/6/six/g' > $testroot/wt/numbers
+ seq 10 | sed 's/6/six/g' > $testroot/wt/numbers
echo ALPHA > $testroot/wt/alpha
(cd $testroot/wt && got diff > $testroot/old.diff \
return 1
fi
- jot 10 | sed 's/6/3+3/g' > $testroot/wt/numbers
- jot -c 3 a > $testroot/wt/alpha
+ seq 10 | sed 's/6/3+3/g' > $testroot/wt/numbers
+ printf '%s\n' a b c > $testroot/wt/alpha
(cd $testroot/wt && got commit -m 'edit alpha and numbers') \
> /dev/null
ret=$?
return 1
fi
- jot 10 > $testroot/wt/numbers
+ seq 10 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
> /dev/null
ret=$?
local commit_id=`git_show_head $testroot/repo`
- jot 10 | sed s/5/five/g > $testroot/wt/numbers
+ seq 10 | sed s/5/five/g > $testroot/wt/numbers
(cd $testroot/wt && got diff > $testroot/wt/patch \
&& got commit -m 'edit numbers') > /dev/null
ret=$?
return 1
fi
- jot 10 | sed -e s/5/five/g -e s/6/six/g > $testroot/wt/numbers
+ seq 10 | sed -e s/5/five/g -e s/6/six/g > $testroot/wt/numbers
(cd $testroot/wt && got commit -m 'edit numbers again') >/dev/null
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 10 > $testroot/wt/numbers
+ seq 10 > $testroot/wt/numbers
(cd $testroot/wt && got add numbers && got commit -m +numbers) \
>/dev/null
ret=$?
return 1
fi
- jot 10 | sed s/4/four/ > $testroot/wt/numbers
+ seq 10 | sed s/4/four/ > $testroot/wt/numbers
# get rid of the metadata
(cd $testroot/wt && got diff | sed -n '/^---/,$p' > patch) \
>/dev/null
- jot 10 | sed s/6/six/ > $testroot/wt/numbers
+ seq 10 | sed s/6/six/ > $testroot/wt/numbers
(cd $testroot/wt && got commit -m 'edit numbers') >/dev/null
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
+ seq 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
cmp -s $testroot/wt/numbers $testroot/wt/numbers.expected
ret=$?
if [ $ret -ne 0 ]; then
return 1
fi
- jot 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
+ seq 10 | sed -e s/4/four/ -e s/6/six/ > $testroot/wt/numbers.expected
cmp -s $testroot/wt/numbers $testroot/wt/numbers.expected
ret=$?
if [ $ret -ne 0 ]; then
blob - 9d0663c277f81746a0e748dfa34bab74a5ac65b5
blob + c3c3a66d88d49db2c7c858fa6cc6cc2c592fbe49
--- regress/cmdline/revert.sh
+++ regress/cmdline/revert.sh
test_revert_patch() {
local testroot=`test_init revert_patch`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
local commit_id=`git_show_head $testroot/repo`
test_revert_patch_one_change() {
local testroot=`test_init revert_patch_one_change`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
local commit_id=`git_show_head $testroot/repo`
blob - 7152f7a681f0e4db92a9a9a549bf0079ed7b9f59
blob + 3c2cfbb76859df180a86e0ad56d976c5f0327eb8
--- regress/cmdline/stage.sh
+++ regress/cmdline/stage.sh
test_stage_patch() {
local testroot=`test_init stage_patch`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
local commit_id=`git_show_head $testroot/repo`
test_stage_patch_twice() {
local testroot=`test_init stage_patch_twice`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
local commit_id=`git_show_head $testroot/repo`
test_stage_patch_quit() {
local testroot=`test_init stage_patch_quit`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
echo zzz > $testroot/repo/zzz
git -C $testroot/repo add numbers zzz
git_commit $testroot/repo -m "added files"
test_stage_patch_incomplete_script() {
local testroot=`test_init stage_incomplete_script`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
echo zzz > $testroot/repo/zzz
git -C $testroot/repo add numbers zzz
git_commit $testroot/repo -m "added files"
blob - 13623342bf573588e2acc70fdd73ada54e46965e
blob + 7a56bd01ff9abe74c71b5b772dc2a536a56a965a
--- regress/cmdline/status.sh
+++ regress/cmdline/status.sh
local testroot=`test_init status_shows_no_mods_after_complete_merge 1`
# make this file larger than the usual blob buffer size of 8192
- jot 16384 > $testroot/repo/numbers
+ seq 16384 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
blob - f3dca3415655e74d6079b22ae72d395f55d890eb
blob + 5f9b7bb3b3a19f838ac5afc1984ab0cc09919ed9
--- regress/cmdline/unstage.sh
+++ regress/cmdline/unstage.sh
test_unstage_patch() {
local testroot=`test_init unstage_patch`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
git -C $testroot/repo add numbers
git_commit $testroot/repo -m "added numbers file"
local commit_id=`git_show_head $testroot/repo`
test_unstage_patch_quit() {
local testroot=`test_init unstage_patch_quit`
- jot 16 > $testroot/repo/numbers
+ seq 16 > $testroot/repo/numbers
echo zzz > $testroot/repo/zzz
git -C $testroot/repo add numbers zzz
git_commit $testroot/repo -m "added files"
blob - 4ae6fbc520b21e761719a82232e309e8e3747239
blob + b24dd5fd78d5c9570776c47220b98aa18dc4e3f1
--- regress/gotd/repo_write.sh
+++ regress/gotd/repo_write.sh
# Create some more commit history on the main branch.
# History needs to be deep enough to trick 'git pull' into sending
# a lot of 'have' lines, which triggered a bug in gotd.
- for i in `jot 50`; do
+ for i in `seq 50`; do
echo "more alpha" >> $testroot/wt/alpha
(cd $testroot/wt && got commit -m 'more changes' > /dev/null)
done