"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: got {diff,log,update} -c KEYWORD (cf. svn revision keywords)
To:
gameoftrees@openbsd.org
Date:
Thu, 20 Jul 2023 00:05:44 +0200

Download raw body.

Thread
Mark Jamsek:

> +test_diff_commit_keywords() {
> +	local testroot=`test_init diff_commit_keywords`
> +
> +	got checkout $testroot/repo $testroot/wt > /dev/null
> +	ret=$?
> +	if [ $ret -ne 0 ]; then
> +		echo "checkout failed unexpectedly" >&2
> +		test_done "$testroot" "$ret"
> +		return 1
> +	fi
> +
> +	set -A ids "$(git_show_head $testroot/repo)"
> +	set -A alpha_ids "$(get_blob_id $testroot/repo "" alpha)"
> +	set -A beta_ids "$(get_blob_id $testroot/repo "" beta)"

"set -A" is a Korn shell construct and not portable to Bourne/POSIX-style
shells.  There is no equivalent either.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de