Lines Matching full:commit
12 import commit
18 '|Reviewed-on:|Commit-\w*:')
35 # Commit series tag
36 re_commit_tag = re.compile('^Commit-([a-z-]*): *(.*)')
38 # Commit tags that we want to collect and keep
41 # The start of a new commit in the git log
42 re_commit = re.compile('^commit ([0-9a-f]*)$')
49 STATE_PATCH_SUBJECT = 1 # In patch subject (first line of log for a commit)
76 self.commit = None # Current commit
93 self.series.AddTag(self.commit, line, name, value)
96 """Add a new Commit-xxx tag.
98 When a Commit-xxx tag is detected, we come here to record it.
102 name: Tag name (part after 'Commit-')
103 value: Tag value (part after 'Commit-xxx: ')
106 self.in_section = 'commit-' + name
110 """Save the current commit into our commit list, and reset our state"""
111 if self.commit and self.is_log:
112 self.series.AddCommit(self.commit)
113 self.commit = None
115 # happens to show up at the very end of the commit message, this is
124 """Process a single line of a patch file or commit log
179 # If a tag is detected, or a new commit starts
192 elif self.in_section == 'commit-notes':
194 self.commit.notes += self.section
214 elif self.in_section == 'commit-notes':
216 self.commit.notes += self.section
225 # Detect the commit subject
227 self.commit.subject = line
233 # TEST= should be the last thing in the commit, so remove
259 self.series.AddChange(self.in_change, self.commit, line)
272 (self.commit.hash, line))
278 # Detect Commit-xxx tags
286 # Detect the start of a new commit
289 self.commit = commit.Commit(commit_match.group(1))
291 # Detect tags in the commit message
298 self.commit.AddCc(tag_match.group(2).split(','))
304 if (self.is_log or not self.commit or
305 self.commit.CheckDuplicateSignoff(signoff_match.group(1))):
330 log = self.series.MakeChangeLog(self.commit)
332 if self.commit:
333 out += self.commit.notes
421 start: Commit to start from: 0=HEAD, 1=next one, etc.
439 def FixPatch(backup_dir, fname, series, commit): argument
450 commit: Commit object for this patch file
458 ps.commit = commit
482 commit = series.commits[count]
483 commit.patch = fname
484 result = FixPatch(backup_dir, fname, series, commit)