Skip to content

Commit

Permalink
Added merge driver for .dmm files.
Browse files Browse the repository at this point in the history
  • Loading branch information
cib authored and cib committed Nov 11, 2012
1 parent 4fd9087 commit 79e4bfe
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.dmm merge=merge-dmm
5 changes: 5 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[merge "merge-dmm"]
name = mapmerge driver
driver = ./mapmerge.sh %O %A %B
recursive = text

Binary file added MapPatcher.jar
Binary file not shown.
8 changes: 8 additions & 0 deletions mapmerge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
java -jar MapPatcher.jar -unpack $1 $1 > /dev/null
java -jar MapPatcher.jar -unpack $2 $2 > /dev/null
java -jar MapPatcher.jar -unpack $3 $3 > /dev/null

cp $2 original.dmm

echo "Map merge conflict, make sure to repack the map with MapPatcher -pack and clean it with MapPatcher -clean original.dmm"
exit 0

0 comments on commit 79e4bfe

Please sign in to comment.