Lines Matching defs:commit
16 description="Finds a commit that a given patch can be applied to. "
57 def CountMatchingFiles(commit, files):
61 cmd = ["git", "ls-tree", "-r", commit] + [f for f in files]
72 commit = GetGitCommitHash(start)
76 matched_files = CountMatchingFiles(commit, files)
77 if verbose: print("Commit %s matched %d files" % (commit, matched_files))
79 return commit
80 commit = GetGitCommitHash("%s^" % commit)
81 print("Sorry, no matching commit found. "
90 commit = FindFirstMatchingCommit(args.branch, files, args.limit, args.verbose)
92 print(">>> Matching commit: %s" % commit)
93 print(subprocess.check_output(["git", "log", "-1", commit]))
96 print(commit)