Home | History | Annotate | Download | only in checkstyle

Lines Matching full:commit

68 ERROR_UNCOMMITTED = 'You need to commit all modified files before running Checkstyle\n'
91 def RunCheckstyleOnACommit(commit,
95 """Runs Checkstyle checks on a given commit.
97 It will run Checkstyle on the changed Java files in a specified commit SHA-1
98 and if that is None it will fallback to check the latest commit of the
102 commit: A full 40 character SHA-1 of a commit to check.
113 explicit_commit = commit is not None
116 commit = git.last_commit()
117 print 'Running Checkstyle on %s commit' % commit
118 commit_modified_files = _GetModifiedFiles(commit, explicit_commit)
125 commit_modified_files.keys(), commit)
134 commit,
246 commit_check: Whether Checkstyle is being run on a specific commit.
268 def _GetModifiedFiles(commit, explicit_commit=False, out=sys.stdout):
275 modified_files = git.modified_files(root, True, commit)
288 def _GetTempFilesForCommit(file_names, commit):
289 """Creates a temporary snapshot of the files in at a commit.
291 Retrieves the state of every file in file_names at a given commit and writes
296 commit: A full 40 character SHA-1 of a commit.
309 ['git', 'show', commit + ':' + rel_path])
324 """Runs Checkstyle checks on a given set of java files or a commit.
327 then the check will be run on a specified commit SHA-1 and if that
328 is None it will fallback to check the latest commit of the currently checked