• Elijah Newren's avatar
    Make running git under other debugger-like programs easy · 84243646
    Elijah Newren authored
    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 bin-wrappers/ in their $PATH and is executing git
    outside the testsuite:
    
       GIT_DEBUGGER="gdb --args" git $ARGS
       GIT_DEBUGGER=nemiver git $ARGS
       GIT_DEBUGGER="valgrind --tool=memcheck --track-origins=yes" git $ARGS
    
    There is also a handy shortcut of GIT_DEBUGGER=1 meaning the same as
    GIT_DEBUGGER="gdb --args"
    Original-patch-by: Johannes Schindelin's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Elijah Newren's avatarElijah Newren <newren@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    84243646
wrap-for-bin.sh 946 Bytes