Lines Matching refs:commits
129 commits, files = interpret_args(opts.args, dash_dash, opts.commit)
130 if len(commits) > 1:
134 if len(commits) > 2:
135 die('at most two commits allowed; %d given' % len(commits))
136 changed_lines = compute_diff_and_extract_lines(commits, files)
157 if len(commits) > 1:
158 old_tree = commits[1]
160 revision=commits[1],
220 commits = [default_commit]
222 commits = args
223 for commit in commits:
232 commits = []
236 commits.append(args.pop(0))
237 if not commits:
238 commits = [default_commit]
241 commits = [default_commit]
243 return commits, files
271 def compute_diff_and_extract_lines(commits, files): argument
273 diff_process = compute_diff(commits, files)
283 def compute_diff(commits, files): argument
291 if len(commits) > 1:
293 cmd = ['git', git_tool, '-p', '-U0'] + commits + ['--']