Home | History | Annotate | Download | only in bin

Lines Matching refs:diff

42 If two commits are given (requires --diff), run clang-format on all lines in the
97 p.add_argument('--diff', action='store_true',
98 help='print a diff instead of applying the changes')
119 help='revision from which to compute the diff')
129 if not opts.diff:
130 die('--diff is required when two commits are given')
151 # The computed diff outputs absolute paths, so we must cd before accessing
171 elif opts.diff:
276 """Return a subprocess object producing the diff from `commits`.
282 git_tool = 'diff-index'
284 git_tool = 'diff-tree'
459 """Print the diff between the two trees to stdout."""
460 # We use the porcelain 'diff' and not plumbing 'diff-tree' because the output
467 subprocess.check_call(['git', 'diff', '--diff-filter=M', old_tree, new_tree,
476 changed_files = run('git', 'diff-tree', '--diff-filter=M', '-r', '-z',
480 unstaged_files = run('git', 'diff-files', '--name-status', *changed_files)