Some patches don't have any of the separations already in use like ---,
diff - or Index. So look for the first "--- */" line.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
#
def __end_descr(line):
return re.match('---\s*$', line) or re.match('diff -', line) or \
#
def __end_descr(line):
return re.match('---\s*$', line) or re.match('diff -', line) or \
- re.match('Index: ', line)
+ re.match('Index: ', line) or re.match('--- \w', line)
def __split_descr_diff(string):
"""Return the description and the diff from the given string
def __split_descr_diff(string):
"""Return the description and the diff from the given string