Home
last modified time | relevance | path

Searched refs:commit (Results 1 – 17 of 17) sorted by relevance

/tools/repohooks/rh/
Dhooks.py322 def _check_cmd(hook_name, project, commit, cmd, fixup_func=None, **kwargs): argument
324 return [rh.results.HookCommandResult(hook_name, project, commit,
337 def check_custom(project, commit, _desc, diff, options=None, **kwargs): argument
339 return _check_cmd(options.name, project, commit, options.args((), diff),
343 def check_bpfmt(project, commit, _desc, diff, options=None): argument
353 data = rh.git.get_file_content(commit, d.file)
357 'bpfmt', project, commit, error=result.stdout,
362 def check_checkpatch(project, commit, _desc, diff, options=None): argument
367 return _check_cmd('checkpatch.pl', project, commit, cmd,
368 input=rh.git.get_patch(commit))
[all …]
Dresults.py29 def __init__(self, hook, project, commit, error, files=(), fixup_func=None): argument
46 self.commit = commit
66 def __init__(self, hook, project, commit, result, files=(), argument
68 HookResult.__init__(self, hook, project, commit,
Dgit.py86 def get_patch(commit): argument
88 cmd = ['git', 'format-patch', '--stdout', '-1', commit]
92 def get_file_content(commit, path): argument
102 cmd = ['git', 'show', '%s:%s' % (commit, path)]
161 def get_affected_files(commit): argument
167 return raw_diff(os.getcwd(), '%s^-' % commit)
178 def get_commit_desc(commit): argument
180 cmd = ['git', 'diff-tree', '-s', '--always', '--format=%B', commit]
Dconfig_test.py39 def check_commit_id(commit): argument
41 assert len(commit) == 40, 'commit "%s" must be 40 chars' % (commit,)
42 assert re.match(r'^[a-f0-9]+$', commit), \
43 'commit "%s" must be all hex' % (commit,)
/tools/repohooks/
Dpre-upload.py90 def commit_start(self, commit, commit_summary): argument
97 status_line = '[%s %s] %s' % (self.COMMIT, commit[0:12], commit_summary)
227 hook_name, commit, fixup_func = fixup_func_list[0]
229 if commit != commit_list[0]:
244 (hook_name, commit, result),
306 for commit in commit_list:
308 os.environ['PREUPLOAD_COMMIT'] = commit
309 diff = rh.git.get_affected_files(commit)
310 desc = rh.git.get_commit_desc(commit)
314 output.commit_start(commit=commit, commit_summary=commit_summary)
[all …]
DPREUPLOAD.cfg8 config_test = ./rh/config_test.py --check-env --commit-id ${PREUPLOAD_COMMIT} --commit-msg ${PREUPL…
DREADME.md91 branch. This is typically latest commit in the remote-tracking branch.
95 * `PREUPLOAD_COMMIT`: The commit that is currently being checked.
130 With a commit that changes `path1/file1` and `path2/file2`, then this will run
142 that are merged. Hooks will still run on the merge commit itself.
164 some cat = formatter --cat-commit ${PREUPLOAD_COMMIT}
165 some dog = tool --no-cat-in-commit-message ${PREUPLOAD_COMMIT_MESSAGE}
178 * `clang_format`: Run git-clang-format against the commit. The default style is
189 `Relnote:` field in the commit message.
203 files match in a specific commit, then the hook will be skipped for that commit.
/tools/external_updater/
Dgit_utils.py90 def get_commit_time(proj_path: Path, commit: str) -> datetime.datetime:
92 out = _run(['git', 'show', '-s', '--format=%ct', commit], cwd=proj_path)
136 def is_commit(commit: str) -> bool:
138 return bool(COMMIT_RE.match(commit))
166 def commit(proj_path: Path, message: str) -> None: function
Dnotifier.py117 def is_commit(commit: str) -> bool:
119 return bool(COMMIT_RE.match(commit))
Dexternal_updater.py115 git_utils.commit(full_path, msg)
/tools/aadevtools/dev/
Dclone_proj.sh64 …parse --git-dir`/hooks/commit-msg ; mkdir -p $(dirname $f) ; curl -Lo $f https://gerrit-review.goo…
/tools/repohooks/tools/
Dclang-format.py78 cmd.extend(['%s^' % opts.commit, opts.commit])
Dandroid_test_mapping_format.py184 if opts.commit:
185 json_data = rh.git.get_file_content(opts.commit, filename)
Dgoogle-java-format.py81 diff_cmd = ['git', 'diff', '--no-ext-diff', '-U0', '%s^!' % opts.commit]
Dspelling.txt262 comit||commit
268 committ||commit
/tools/metalava/
DFORMAT.md297 method public static void edit(android.content.SharedPreferences, boolean commit);
301 name to be specified; "commit" in the above.
313 public static void edit(SharedPreferences prefs, @ParameterName("commit") boolean ct) {…}
329 method public static void edit(SharedPreferences, boolean commit = false);
/tools/tradefederation/prebuilts/filegroups/tradefed/
Dloganalysis.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/android/ com/ ...