##// END OF EJS Templates
patch: reindent code
Patrick Mezard -
r14387:e1b4a7a7 default
parent child Browse files
Show More
@@ -1149,10 +1149,11 b' def iterhunks(fp):'
1149 yield 'file', (afile, bfile, h, gp and gp.mode or None)
1149 yield 'file', (afile, bfile, h, gp and gp.mode or None)
1150 yield 'hunk', h
1150 yield 'hunk', h
1151 elif x.startswith('diff --git'):
1151 elif x.startswith('diff --git'):
1152 # check for git diff, scanning the whole patch file if needed
1153 m = gitre.match(x)
1152 m = gitre.match(x)
1154 if m:
1153 if not m:
1154 continue
1155 if not git:
1155 if not git:
1156 # scan whole input for git metadata
1156 git = True
1157 git = True
1157 gitpatches = scangitpatch(lr, x)
1158 gitpatches = scangitpatch(lr, x)
1158 for gp in gitpatches:
1159 for gp in gitpatches:
General Comments 0
You need to be logged in to leave comments. Login now