Home | History | Annotate | Download | only in tools

Lines Matching defs:files

31   files = {}
44 if old_hash.startswith("0000000"): continue # Ignore new files.
45 files[next_file] = old_hash
46 return files
54 def CountMatchingFiles(commit, files):
58 cmd = ["git", "ls-tree", "-r", commit] + [f for f in files]
63 expected_hash = files[filename]
68 def FindFirstMatchingCommit(start, files, limit, verbose):
70 num_files = len(files)
71 if verbose: print(">>> Found %d files modified by patch." % num_files)
73 matched_files = CountMatchingFiles(commit, files)
74 if verbose: print("Commit %s matched %d files" % (commit, matched_files))
86 files = FindFilesInPatch(args.patch_file)
87 commit = FindFirstMatchingCommit(args.branch, files, args.limit, args.verbose)