Home | History | Annotate | Download | only in Scripts

Lines Matching refs:diff

237     """Checks the contents of a git diff."""

239 def __init__(self, diff):
242 self.lines = diff.splitlines(True)
262 if line.startswith('diff --git'):
270 if line.startswith('diff --git'):
271 self.format_error('diff found after end of patch')
277 if line.startswith('diff --git'):
281 self.format_error("didn't find diff command")
298 self.format_error("didn't find diff hunk marker (@@)")
376 ^ diff \s+ --git \s+ a/.+ \s+ b/.+ $
417 if self.diff is not None:
418 diff_check = GitDiffCheck(self.diff)
431 result.append('diff content')
437 ^ diff \s+ --git \s+ a/.+ \s+ b/.+ $
471 self.diff = None
473 if patch.startswith('diff --git'):
474 self.diff = patch
485 self.diff = content[mo.start():]