From c9ebe8bcdf3e1f3ff5b1fbebadce9c60f601315a Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 8 Jan 2023 10:32:22 +0100 Subject: svn-commit-git-patch: Output diff and message before commit Signed-off-by: Florian Pritz --- svn-commit-git-patch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svn-commit-git-patch b/svn-commit-git-patch index 54b345d..b25be44 100755 --- a/svn-commit-git-patch +++ b/svn-commit-git-patch @@ -49,5 +49,11 @@ while (my $line = <$fh>) { $message = "$subject\n\n$message"; -system(qw(svn patch --strip 1), $patchfile); +system(qw(patch -p 3 -i), $patchfile); + +system(qw(svn diff)); + +print "Commit message will be:\n$message\n\n\n"; +print "Press Enter to commit"; +; system(qw(svn commit -m), $message); -- cgit v1.2.3-24-g4f1b