Home | History | Annotate | Download | only in tools

Lines Matching defs:commit

13       description="Finds a commit that a given patch can be applied to. "
54 def CountMatchingFiles(commit, files):
58 cmd = ["git", "ls-tree", "-r", commit] + [f for f in files]
69 commit = GetGitCommitHash(start)
73 matched_files = CountMatchingFiles(commit, files)
74 if verbose: print("Commit %s matched %d files" % (commit, matched_files))
76 return commit
77 commit = GetGitCommitHash("%s^" % commit)
78 print("Sorry, no matching commit found. "
87 commit = FindFirstMatchingCommit(args.branch, files, args.limit, args.verbose)
89 print(">>> Matching commit: %s" % commit)
90 print(subprocess.check_output(["git", "log", "-1", commit]))
93 print(commit)