Lines Matching refs:commits
127 commits, files = interpret_args(opts.args, dash_dash, opts.commit)
128 if len(commits) > 1:
132 if len(commits) > 2:
133 die('at most two commits allowed; %d given' % len(commits))
134 changed_lines = compute_diff_and_extract_lines(commits, files)
154 if len(commits) > 1:
155 old_tree = commits[1]
157 revision=commits[1],
212 commits = [default_commit]
214 commits = args
215 for commit in commits:
224 commits = []
228 commits.append(args.pop(0))
229 if not commits:
230 commits = [default_commit]
233 commits = [default_commit]
235 return commits, files
263 def compute_diff_and_extract_lines(commits, files): argument
265 diff_process = compute_diff(commits, files)
275 def compute_diff(commits, files): argument
283 if len(commits) > 1:
285 cmd = ['git', git_tool, '-p', '-U0'] + commits + ['--']