X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/eb026d9396af187c6a92370595e85c4e94c4db0c..26aab5b04fa4ba13f48948de73e497cf0a315ad1:/stgit/commands/push.py diff --git a/stgit/commands/push.py b/stgit/commands/push.py index 65462b3..6325483 100644 --- a/stgit/commands/push.py +++ b/stgit/commands/push.py @@ -25,7 +25,18 @@ from stgit import stack, git help = 'push a patch on top of the series' -usage = '%prog [options] []' +usage = """%prog [options] [] + +Push a patch (defaulting to the first unapplied one) or range of +patches to the stack. The 'push' operation allows patch reordering by +commuting them with the three-way merge algorithm. If the result of +the 'push' operation is not acceptable or if there are too many +conflicts, the '--undo' option can be used to revert the patch and the +tree to the state before the operation. Conflicts raised during the +push operation have to be fixed and the 'resolved' command run. + +The 'push' command also notifies when the patch becomes empty after +the merge operation (i.e. it was fully merged upstream).""" options = [make_option('-a', '--all', help = 'push all the unapplied patches',