summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2015-11-05 19:31:15 (GMT)
committerXavier Claessens <xavier.claessens@collabora.com>2015-11-05 20:20:58 (GMT)
commitf24502ac56243024b9262ab90afa5ebd44ed4910 (patch)
treefa4337568b22e6ddc0e272f0703b645621657c87
parent054f8cd3ca69f7efbc203641039b12878b1badcf (diff)
downloadgit-phab-f24502ac56243024b9262ab90afa5ebd44ed4910.tar.gz
git-phab-f24502ac56243024b9262ab90afa5ebd44ed4910.tar.xz
land: Add --no-push option
Differential Revision: https://phabricator.freedesktop.org/D496
-rwxr-xr-xgit-phab7
1 files changed, 7 insertions, 0 deletions
diff --git a/git-phab b/git-phab
index 4f6948a..163ad96 100755
--- a/git-phab
+++ b/git-phab
@@ -849,6 +849,9 @@ class GitPhab:
self.repo.head.reset(index=True, working_tree=True)
raise
+ if self.no_push:
+ return
+
# Do the real push
self.repo.git.push()
@@ -954,6 +957,10 @@ if __name__ == '__main__':
land_parser = subparsers.add_parser(
'land', help="Run 'git push' but also close related tasks")
+ land_parser.add_argument(
+ '--no-push', action="store_true",
+ help="Only rewrite commit messages but do not push.") \
+ .completer = DisabledCompleter
argcomplete.autocomplete(parser)