Sha256: b3fcfc55a81657f80921a361aac92a286161cfe89bd71ca1db35c59d5a397d9f

Contents?: true

Size: 764 Bytes

Versions: 21

Compression:

Stored size: 764 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='git squash commit.',
      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

21 entries across 21 versions & 1 rubygems

Version Path
libv8-5.3.332.38.5 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.4 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.3 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.2 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.1 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.0 vendor/depot_tools/git_squash_branch.py
libv8-5.3.332.38.0beta2 vendor/depot_tools/git_squash_branch.py
libv8-5.2.361.43.1 vendor/depot_tools/git_squash_branch.py
libv8-5.2.361.43.0 vendor/depot_tools/git_squash_branch.py
libv8-5.1.281.59.1 vendor/depot_tools/git_squash_branch.py
libv8-5.1.281.59.0 vendor/depot_tools/git_squash_branch.py
libv8-5.1.281.59.0beta3 vendor/depot_tools/git_squash_branch.py
libv8-5.0.71.48.3 vendor/depot_tools/git_squash_branch.py
libv8-5.0.71.48.2 vendor/depot_tools/git_squash_branch.py
libv8-5.0.71.48.0beta2 vendor/depot_tools/git_squash_branch.py
libv8-4.5.95.5 vendor/depot_tools/git_squash_branch.py
libv8-4.5.95.4 vendor/depot_tools/git_squash_branch.py
libv8-4.5.95.3 vendor/depot_tools/git_squash_branch.py
libv8-4.5.95.2 vendor/depot_tools/git_squash_branch.py
libv8-4.5.95.1 vendor/depot_tools/git_squash_branch.py