Re: [PATCH v2] Make running git under other debugger-like programs easy

2018-04-10 Thread Johannes Schindelin
Hi Elijah, On Mon, 9 Apr 2018, Elijah Newren wrote: > On Mon, Apr 9, 2018 at 2:19 PM, Johannes Schindelin > wrote: > > > > On Mon, 9 Apr 2018, Elijah Newren wrote: > > > >> debug () { > >> - GIT_TEST_GDB=1 "$@" <&6 >&5 2>&7 > >> + case "$1" in > >> +

Re: [PATCH v2] Make running git under other debugger-like programs easy

2018-04-09 Thread Elijah Newren
[Re-sending, making sure the annoying rich text mode isn't turned on in gmail...] Hi Dscho, On Mon, Apr 9, 2018 at 2:19 PM, Johannes Schindelin wrote: > Hi Elijah, > > On Mon, 9 Apr 2018, Elijah Newren wrote: > >> debug () { >> - GIT_TEST_GDB=1 "$@" <&6 >&5

Re: [PATCH v2] Make running git under other debugger-like programs easy

2018-04-09 Thread Johannes Schindelin
Hi Elijah, On Mon, 9 Apr 2018, Elijah Newren wrote: > diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh > index 1701fe2a06..0591d9a7f8 100644 > --- a/t/test-lib-functions.sh > +++ b/t/test-lib-functions.sh > @@ -145,12 +145,28 @@ test_pause () { > "$SHELL_PATH" <&6 >&5 2>&7 >

[PATCH v2] Make running git under other debugger-like programs easy

2018-04-09 Thread Elijah Newren
This allows us to run git, when using the script from bin-wrappers, under other programs. A few examples for usage within testsuite scripts: debug git checkout master debug --debugger=nemiver git $ARGS debug -d "valgrind --tool-memcheck --track-origins=yes" git $ARGS Or, if someone has