]> git.cworth.org Git - nogit/blobdiff - nogit
Provide the merge=union semantics we want through an info/attributes file
[nogit] / nogit
diff --git a/nogit b/nogit
index d55124d27d95ea92dcaa65d2475ab2f5c36f7e77..b0820fc224413e9bfbc0e51562e45309f3cadd5e 100755 (executable)
--- a/nogit
+++ b/nogit
@@ -97,6 +97,12 @@ nogit_clone()
         false
     fi
 
+    # Install the info/atttributes file that forces the "union" merge
+    # driver for all files, giving us the semantics of "keep both sides
+    # of all conflicts" that is at the heart of nogit.
+    mkdir -p tmp/.git/info
+    echo '* merge=union' > tmp/.git/info/attributes
+
     # Now that we've passed the sanity check, install the cloned .git
     # object store into $NOGIT_DIR, cleanup our temporary files, and
     # checkout the (known to not be conflicting) files.