 Chromium Code Reviews
 Chromium Code Reviews Issue 184253003:
  Add git-reup and friends  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw
    
  
    Issue 184253003:
  Add git-reup and friends  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@freeze_thaw| OLD | NEW | 
|---|---|
| (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)) | |
| OLD | NEW |