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

Version Path
libv8-8.4.255.0.1 vendor/depot_tools/git_squash_branch.py
libv8-8.4.255.0 vendor/depot_tools/git_squash_branch.py
libv8-7.8.279.23.0beta1 vendor/depot_tools/git_squash_branch.py
libv8-7.4.288.28.0beta1 vendor/depot_tools/git_squash_branch.py
libv8-7.3.492.27.3beta1 vendor/depot_tools/git_squash_branch.py
libv8-7.3.492.27.1 vendor/depot_tools/git_squash_branch.py
libv8-7.3.492.27.0 vendor/depot_tools/git_squash_branch.py
libv8-7.3.492.27.0beta1 vendor/depot_tools/git_squash_branch.py
libv8-6.7.288.46.1 vendor/depot_tools/git_squash_branch.py
libv8-6.7.288.46.0 vendor/depot_tools/git_squash_branch.py
libv8-6.7.288.46.1beta0 vendor/depot_tools/git_squash_branch.py
libv8-6.3.292.48.1 vendor/depot_tools/git_squash_branch.py
libv8-6.3.292.48.0 vendor/depot_tools/git_squash_branch.py
libv8-6.3.292.48.0beta2 vendor/depot_tools/git_squash_branch.py
libv8-6.3.292.48.0beta1 vendor/depot_tools/git_squash_branch.py
libv8-6.2.414.42.1 vendor/depot_tools/git_squash_branch.py
libv8-6.2.414.42.0 vendor/depot_tools/git_squash_branch.py
libv8-6.2.414.42.0beta1 vendor/depot_tools/git_squash_branch.py
libv8-6.0.286.54.3 vendor/depot_tools/git_squash_branch.py
libv8-6.0.286.54.2 vendor/depot_tools/git_squash_branch.py