Home | History | Annotate | Download | only in bin

Lines Matching refs:diff

43 If two commits are given (requires --diff), run clang-format on all lines in the
98 p.add_argument('--diff', action='store_true',
99 help='print a diff instead of applying the changes')
120 help='revision from which to compute the diff')
130 if not opts.diff:
131 die('--diff is required when two commits are given')
152 # The computed diff outputs absolute paths, so we must cd before accessing
172 elif opts.diff:
277 """Return a subprocess object producing the diff from `commits`.
283 git_tool = 'diff-index'
285 git_tool = 'diff-tree'
480 """Print the diff between the two trees to stdout."""
481 # We use the porcelain 'diff' and not plumbing 'diff-tree' because the output
488 subprocess.check_call(['git', 'diff', '--diff-filter=M', old_tree, new_tree,
497 changed_files = run('git', 'diff-tree', '--diff-filter=M', '-r', '-z',
501 unstaged_files = run('git', 'diff-files', '--name-status', *changed_files)