Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: git_squash_branch.py

Issue 184253003: Add git-reup and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
Patch Set: one more argparse Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
agable 2014/03/21 01:14:21 docstring
6 import sys
7
8 from git_common import squash_current_branch
9
10 def main(args):
11 # TODO(iannucci): Use argparse
agable 2014/03/21 01:14:21 do this now
12 header = None
13 if len(args) > 2:
14 print "Usage: git squash [optional_message]"
15 elif len(args) == 2:
16 header = args[1]
17 squash_current_branch(header)
18
19 if __name__ == '__main__':
20 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698