Lines Matching defs:files
17 clang-format on the changes in current files or a specific commit.
169 help="allow changes to unstaged files",
221 help="if specified, only consider differences in these files",
228 commits, files = interpret_args(opts.args, dash_dash, opts.commit)
246 commits, files, opts.staged, opts.diff_from_common_commit
252 # those files.
260 "Ignoring the following files (wrong extension, symlink, or "
266 print("Running clang-format on the following files:")
272 print("no modified files to format")
293 print("clang-format did not modify any files")
305 print("changed files:")
336 """Interpret `args` as "[commits] [--] [files]" and return (commits, files).
343 checked from left to right if they are commits or files. If commits are not
360 files = dash_dash[1:]
369 files = args
372 files = []
373 return commits, files
403 def compute_diff_and_extract_lines(commits, files, staged, diff_common_commit):
405 diff_process = compute_diff(commits, files, staged, diff_common_commit)
415 def compute_diff(commits, files, staged, diff_common_commit):
421 both specified commits, filtered on `files` (if non-empty).
433 cmd.extend(files)
508 """Create a new git tree with the given files from the working directory.
515 # Copy the environment, because the files have to be read from the original
523 "ls-files",
547 # Copy the environment when formatting the files in the index, because the
548 # files have to be read from the original index.
570 "ls-files",
731 # We also only print modified files since `new_tree` only contains the files
732 # that were modified, so unmodified files would show as deleted without the
745 # We also only print modified files since `new_tree` only contains the files
746 # that were modified, so unmodified files would show as deleted without the
764 Bails if there are local changes in those files and not `force`. If
782 "git", "diff-files", "--name-status", *changed_files
786 "The following files would be modified but have unstaged "