Lines Matching refs:commit
123 commit, files = interpret_args(opts.args, dash_dash, opts.commit)
124 changed_lines = compute_diff_and_extract_lines(commit, files)
195 commit = default_commit
199 commit = args[0]
200 object_type = get_object_type(commit)
203 die("'%s' is not a commit" % commit)
205 die("'%s' is a %s, but a commit was expected" % (commit, object_type))
209 commit = args[0]
212 commit = default_commit
215 commit = default_commit
217 return commit, files
245 def compute_diff_and_extract_lines(commit, files): argument
247 diff_process = compute_diff(commit, files)
257 def compute_diff(commit, files): argument
263 cmd = ['git', 'diff-index', '-p', '-U0', commit, '--']