Lines Matching full:commit
34 """Returns the SHA1 of the last commit."""
52 def modified_files(root, tracked_only=False, commit=None):
53 """Returns a list of files that has been modified since the last commit.
58 commit: SHA1 of the commit. If None, it will get the modified files in the
67 if commit:
68 return _modified_files_with_commit(root, commit)
89 def _modified_files_with_commit(root, commit):
92 ['git', 'diff-tree', '-r', '--root', '--no-commit-id', '--name-status',
93 commit]).decode('utf-8').split(os.linesep)
106 def modified_lines(filename, extra_data, commit=None):
113 commit: the complete sha1 (40 chars) of the commit.
123 if commit is None:
124 commit = '0' * 40
125 commit = commit.encode('utf-8')
129 ['git', 'blame', commit, '--porcelain', '--', filename]).split(
133 commit + br' (?P<line>\d+) (\d+)',