diff options
-rwxr-xr-x | spice-server/format_patches | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spice-server/format_patches b/spice-server/format_patches index 059628d..f8f0dbf 100755 --- a/spice-server/format_patches +++ b/spice-server/format_patches @@ -9,6 +9,7 @@ import re TEMP_DIR = 'temp_format_patches' START_REF = 'origin/master' +# split mbox patch between commit message and list of files patch_split = re.compile(r'\n---\n(?= .+ \| )') class GitSeries: @@ -65,8 +66,10 @@ class GitPatch: if len(var) != 2: raise Exception('Failed splitting patch') + # second part, patch (with file statistic) self.patch = var[1] + # first part headers, commit message var = re.split(r'\n---+ ', var[0]) self.desc = var[0].lstrip() del var[0] |