Lines Matching +full:merge +full:- +full:multiple
3 # Use of this source code is governed by a BSD-style license that can be
7 lastchange.py -- Chromium revision fetching utility.
52 command = ['sh', '-c', ' '.join(command)]
79 command = ['sh', '-c', ' '.join(command)]
107 Return the merge-base of HEAD and ref.
111 ref: The ref to use to find the merge base.
113 The git commit SHA of the merge-base as a string.
115 logging.debug("Calculating merge base between HEAD and %s in %s",
117 command = ['merge-base', 'HEAD', ref]
123 Fetch the Git hash (and Cr-Commit-Position if any) for a given directory.
136 git_args = ['log', '-1', '--format=%H %ct']
138 git_args.append('--grep=' + commit_filter)
148 output = _RunGitCommand(directory, ['cat-file', 'commit', hash_])
150 if line.startswith('Cr-Commit-Position:'):
151 pos = line.rsplit()[-1].strip()
152 logging.debug("Found Cr-Commit-Position '%s'", pos)
153 revision = "{}-{}".format(hash_, pos)
166 if src_index != -1:
197 """Get the top git directory - the directory that contains the .git directory.
202 The output of "git rev-parse --show-toplevel" as a string
204 return _RunGitCommand(source_dir, ['rev-parse', '--show-toplevel'])
248 "You requested a --merge-base-ref value of '%s' but no "
249 "merge base could be found between it and HEAD. Git "
290 parser.add_argument("-m", "--version-macro",
291 help=("Name of C #define when using --header. Defaults to "
293 parser.add_argument("-o",
294 "--output",
297 "Can be combined with other file-output-related "
298 "options to write multiple files."))
299 parser.add_argument("--header",
302 "Can be combined with other file-output-related "
303 "options to write multiple files."))
304 parser.add_argument("--revision",
306 help=("Write last change to FILE as a one-line revision. "
307 "Can be combined with other file-output-related "
308 "options to write multiple files."))
309 parser.add_argument("--merge-base-ref",
311 help=("Only consider changes since the merge "
313 parser.add_argument("--revision-id-only", action='store_true',
315 "Git, a 40-character commit hash, excluding the "
316 "Cr-Commit-Position)."))
317 parser.add_argument("--print-only", action="store_true",
319 "file-output-related options."))
320 parser.add_argument("-s", "--source-dir", metavar="DIR",
322 parser.add_argument("--filter", metavar="REGEX",
325 "'^Change-Id:' to suppress local commits."),
326 default='^Change-Id:')