Skip to content

Commit

Permalink
git-merge-recursive: Trivial RE fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Sep 14, 2005
1 parent daae669 commit 74376a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-merge-recursive.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def infoMsg(*args):

return [res, clean]

getFilesRE = re.compile('([0-9]+) ([a-z0-9]+) ([0-9a-f]{40})\t(.*)')
getFilesRE = re.compile(r'^([0-7]+) (\S+) ([0-9a-f]{40})\t(.*)$', re.S)
def getFilesAndDirs(tree):
files = Set()
dirs = Set()
Expand All @@ -99,7 +99,7 @@ def __init__(self):
self.stages = [Stage(), Stage(), Stage()]
self.path = path

unmergedRE = re.compile('^([0-9]+) ([0-9a-f]{40}) ([1-3])\t(.*)$')
unmergedRE = re.compile(r'^([0-7]+) ([0-9a-f]{40}) ([1-3])\t(.*)$', re.S)
def unmergedCacheEntries():
'''Create a dictionary mapping file names to CacheEntry
objects. The dictionary contains one entry for every path with a
Expand Down

0 comments on commit 74376a6

Please sign in to comment.