Download raw body.
reset committer name during rebase and histedit
On Sat, Jul 23, 2022 at 04:14:26PM +0200, Omar Polo wrote:
> anyway, i forgot that we could change the values in a subshell, so it
> could be further simplified to:
Ah, this is nice indeed.
> diff /home/op/w/got
> commit - 2c8899b952f67f90ab3a26b4331491832fe93c8a
> path + /home/op/w/got
> blob - bd32f96c5071b834cc2b1478703442467b2cbfca
> file + regress/cmdline/commit.sh
> --- regress/cmdline/commit.sh
> +++ regress/cmdline/commit.sh
> @@ -901,7 +901,8 @@ test_commit_gitconfig_author() {
> (cd $testroot/repo && git config user.email 'flan_luck@openbsd.org')
>
> echo "modified alpha" > $testroot/wt/alpha
> - (cd $testroot/wt && got commit -m 'test gitconfig author' > /dev/null)
> + (unset GOT_IGNORE_GITCONFIG && cd $testroot/wt && \
> + got commit -m 'test gitconfig author' > /dev/null)
> ret=$?
> if [ $ret -ne 0 ]; then
> test_done "$testroot" "$ret"
> blob - 26f717faa35b5906f8abb7c9f459f633ebaa09dc
> file + regress/cmdline/common.sh
> --- regress/cmdline/common.sh
> +++ regress/cmdline/common.sh
> @@ -23,6 +23,7 @@ export GOT_AUTHOR_8="flan_hac"
> export GOT_AUTHOR_11="flan_hacker"
> export GOT_LOG_DEFAULT_LIMIT=0
> export GOT_TEST_ROOT="/tmp"
> +export GOT_IGNORE_GITCONFIG=1
>
> export MALLOC_OPTIONS=S
>
> blob - 17e0a03100631d85b1f0e371cf6380a5c8c25fe3
> file + regress/cmdline/rebase.sh
> --- regress/cmdline/rebase.sh
> +++ regress/cmdline/rebase.sh
> @@ -1597,8 +1597,8 @@ test_rebase_no_author_info() {
> return 1
> fi
>
> - unset GOT_AUTHOR
> - (cd $testroot/wt && got rebase newbranch > $testroot/stdout)
> + (unset GOT_AUTHOR && cd $testroot/wt && \
> + got rebase newbranch > $testroot/stdout)
>
> (cd $testroot/repo && git checkout -q newbranch)
> local new_commit1=`git_show_parent_commit $testroot/repo`
>
>
reset committer name during rebase and histedit