| Index: git_squash_branch.py
|
| diff --git a/git_squash_branch.py b/git_squash_branch.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..408bb582b5e7e597ce2fe1887df86b6e72db22b2
|
| --- /dev/null
|
| +++ b/git_squash_branch.py
|
| @@ -0,0 +1,20 @@
|
| +#!/usr/bin/env python
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import sys
|
| +
|
| +from git_common import squash_current_branch
|
| +
|
| +def main(args):
|
| + # TODO(iannucci): Use argparse
|
| + header = None
|
| + if len(args) > 2:
|
| + print "Usage: git squash [optional_message]"
|
| + elif len(args) == 2:
|
| + header = args[1]
|
| + squash_current_branch(header)
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main(sys.argv))
|
|
|