git svn dcommit: new option --interactive.
authorFrédéric Heitzmann <frederic.heitzmann@gmail.com>
Fri, 16 Sep 2011 21:02:01 +0000 (23:02 +0200)
committerEric Wong <normalperson@yhbt.net>
Sun, 16 Oct 2011 08:12:26 +0000 (08:12 +0000)
commitafd7f1eb0f4ceebcea2427e6e7f80d4dc32081ec
treec63927c6bc491ba33b0f8d4a23b243ae9fd935ad
parent288396994f077eec7e7db0017838a5afbfbf81e3
git svn dcommit: new option --interactive.

Allow the user to check the patch set before it is commited to SVN. It is
then possible to accept/discard one patch, accept all, or quit.

This interactive mode is similar with 'git send email' behaviour. However,
'git svn dcommit' returns as soon as one patch is discarded.
Part of the code was taken from git-send-email.perl (see 'ask' function)

Tests several combinations of potential answers to
'git svn dcommit --interactive'. For each of them, test whether patches
were commited to SVN or not.

Thanks-to Eric Wong <normalperson@yhbt.net> for the initial idea.

Acked-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Frédéric Heitzmann <frederic.heitzmann@gmail.com>
Documentation/git-svn.txt
git-svn.perl
t/t9162-git-svn-dcommit-interactive.sh [new file with mode: 0644]