commit - eb6fb9cdfb8f52fcb6baf65ca864b8e506f64901
commit + 1a3a193e01b5bb5d31702f55934b298b8b89a3b6
blob - 5ded37bff3fc54893ebb5730937274ffb904a1e1
blob + 32ca2931e3071c10d03c698a6c1fbac3f2513eeb
--- regress/cmdline/branch.sh
+++ regress/cmdline/branch.sh
# check up-to-date marker is shown with fresh checkout
(cd "$wt" && got br -l > "$testroot/stdout")
- echo "* master: $(pop_id 1 $@)" > $testroot/stdout.expected
- echo " newbranch: $(pop_id 1 $@)" >> $testroot/stdout.expected
+ echo "* master: $(pop_idx 1 $@)" > $testroot/stdout.expected
+ echo " newbranch: $(pop_idx 1 $@)" >> $testroot/stdout.expected
cmp -s $testroot/stdout $testroot/stdout.expected
ret=$?
if [ $ret -ne 0 ]; then
set -- "$@" "$(git_show_head "$testroot/repo")"
(cd "$wt" && got br -l > "$testroot/stdout")
- echo "~ master: $(pop_id 2 $@)" > $testroot/stdout.expected
- echo " newbranch: $(pop_id 1 $@)" >> $testroot/stdout.expected
+ echo "~ master: $(pop_idx 2 $@)" > $testroot/stdout.expected
+ echo " newbranch: $(pop_idx 1 $@)" >> $testroot/stdout.expected
cmp -s $testroot/stdout $testroot/stdout.expected
ret=$?
if [ $ret -ne 0 ]; then
# check up-to-date marker is shown after 'got update'
(cd "$wt" && got up > /dev/null)
(cd "$wt" && got br -l > "$testroot/stdout")
- echo "* master: $(pop_id 2 $@)" > $testroot/stdout.expected
- echo " newbranch: $(pop_id 1 $@)" >> $testroot/stdout.expected
+ echo "* master: $(pop_idx 2 $@)" > $testroot/stdout.expected
+ echo " newbranch: $(pop_idx 1 $@)" >> $testroot/stdout.expected
cmp -s $testroot/stdout $testroot/stdout.expected
ret=$?
if [ $ret -ne 0 ]; then
# check out-of-date marker is shown with out-of-date base commit
(cd "$wt" && got up -c:head:- > /dev/null)
(cd "$wt" && got br -l > "$testroot/stdout")
- echo "~ master: $(pop_id 2 $@)" > $testroot/stdout.expected
- echo " newbranch: $(pop_id 1 $@)" >> $testroot/stdout.expected
+ echo "~ master: $(pop_idx 2 $@)" > $testroot/stdout.expected
+ echo " newbranch: $(pop_idx 1 $@)" >> $testroot/stdout.expected
cmp -s $testroot/stdout $testroot/stdout.expected
ret=$?
if [ $ret -ne 0 ]; then