git svn dcommit: new option --interactive.
PATCH v2 1/1 git svn dcommit: new option --interactive.
Allow the user to check the patch set before it is commited to SNV. 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 <[email protected]> for the initial idea.
Signed-off-by Frédéric Heitzmann <[email protected]>
Signed-off-by Eric Wong <[email protected]>
--- Documentation/git-svn.txt | 8 +++ git-svn.perl | 76 +++++++++++++++++++++++++++++++- t/t9160-git-svn-dcommit-interactive.sh | 64 +++++++++++++++++++++++++++ 3 files changed, 147 insertions(+), 1 deletions(-) create mode 100644 t/t9160-git-svn-dcommit-interactive.sh
Documentation/git-svn.txt +8 -0
@@ -226,6 +226,14 @@ discouraged. branches, use a single space character between the branches (`--mergeinfo="/branches/foo:1-10 /branches/bar:3,5-6,8"`) +--interactive;; + Ask the user to confirm that a patch set should actually be sent to SVN. + For each patch, one may answer "yes" (accept this patch), "no" (discard this + patch), "all" (accept all patches), or "quit". + + + 'git svn dcommit' returns immediately if answer if "no" or "quit", without + commiting anything to SVN. + 'branch':: Create a branch in the SVN repository.
git-svn.perl +75 -1
106 lines not on this page · raw message
t/t9160-git-svn-dcommit-interactive.sh new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
1.7.7.rc0.73.g0a352.dirty