summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 857f26d)
raw | patch | inline | side by side (parent: 857f26d)
author | Fredrik Kuivinen <freku045@student.liu.se> | |
Fri, 11 Nov 2005 23:55:36 +0000 (00:55 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 12 Nov 2005 05:14:39 +0000 (21:14 -0800) |
Makes it less probable that we get a clash with an existing file,
furthermore Cogito already uses '~' for this purpose.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
furthermore Cogito already uses '~' for this purpose.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-merge-recursive.py | patch | blob | history |
diff --git a/git-merge-recursive.py b/git-merge-recursive.py
index 21f1e924f01fa69523bbc6f96873930da4172c99..1bf73f336d4c34011b9cfe5a13b88a1f657d3f4e 100755 (executable)
--- a/git-merge-recursive.py
+++ b/git-merge-recursive.py
raise
branch = branch.replace('/', '_')
- newPath = path + '_' + branch
+ newPath = path + '~' + branch
suffix = 0
while newPath in currentFileSet or \
newPath in currentDirectorySet or \
fileExists(newPath):
suffix += 1
- newPath = path + '_' + branch + '_' + str(suffix)
+ newPath = path + '~' + branch + '_' + str(suffix)
currentFileSet.add(newPath)
return newPath