Sha256: 9a1b54d79d6f093a694e86206bcd0a49e7caf546bc93d12e065f832baeee8bb9
Contents?: true
Size: 748 Bytes
Versions: 32
Compression:
Stored size: 748 Bytes
Contents
#!/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 argparse import sys import git_common def main(args): parser = argparse.ArgumentParser() parser.add_argument( '-m', '--message', metavar='<msg>', default=None, help='Use the given <msg> as the first line of the commit message.') opts = parser.parse_args(args) if git_common.is_dirty_git_tree('squash-branch'): return 1 git_common.squash_current_branch(opts.message) return 0 if __name__ == '__main__': try: sys.exit(main(sys.argv[1:])) except KeyboardInterrupt: sys.stderr.write('interrupted\n') sys.exit(1)
Version data entries
32 entries across 32 versions & 1 rubygems