diff --git a/README.md b/README.md index ddc45c8..b9c778f 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,10 @@ If you want to supply a review topic: git review -t topic/awesome-feature +If you want to submit a branch for review and then remove the local branch: + + git review -f + If you want to skip the automatic "git rebase -i" step: git review -R diff --git a/git-review b/git-review index b9308ce..1a24678 100755 --- a/git-review +++ b/git-review @@ -549,8 +549,6 @@ def main(): parser.add_option("-R", "--no-rebase", dest="rebase", action="store_false", help="Don't rebase changes before submitting.") - parser.add_option("-v", "--verbose", dest="verbose", action="store_true", - help="Output more information about what's going on") parser.add_option("-d", "--download", dest="download", help="Download the contents of an existing gerrit " "review into a branch") @@ -565,6 +563,8 @@ def main(): parser.add_option("-y", "--yes", dest="yes", action="store_true", help="Indicate that you do, in fact, understand if you " "are submitting more than one patch") + parser.add_option("-v", "--verbose", dest="verbose", action="store_true", + help="Output more information about what's going on") parser.add_option("--version", dest="version", action="store_true", help="Print version number and exit") parser.set_defaults(dry=False, rebase=True, verbose=False, update=False, diff --git a/git-review.1 b/git-review.1 index b6772dc..b7965d5 100644 --- a/git-review.1 +++ b/git-review.1 @@ -58,6 +58,11 @@ git remote to use for gerrit Do not automatically perform a rebase before submitting the change to gerrit. .TP +.B \-\-download, \-d +.sp +Treat the argument as the review id of a review to download into a local +branch. +.TP .B \-\-update, \-u .sp Skip cached local copies and force updates from network resources. @@ -66,6 +71,11 @@ Skip cached local copies and force updates from network resources. .sp Just run the repo setup commands but don\(aqt submit anything .TP +.B \-\-finish, \-f +.sp +Close down the local branch and switch back to the target branch on +successful submission. +.TP .B \-\-yes, \-y .sp Indicate that you do, in fact, understand if you are submitting more than @@ -74,6 +84,10 @@ one patch .B \-\-verbose, \-v .sp Turns on more verbose output. +.TP +.B \-\-version +.sp +Print the version number and exit. .UNINDENT .SH PROJECT CONFIGURATION .sp