]> git.cworth.org Git - nogit/commit - nogit
Provide a simple implementation of "nogit sync"
authorCarl Worth <cworth@cworth.org>
Sun, 5 Jul 2020 05:58:25 +0000 (22:58 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 5 Jul 2020 05:58:25 +0000 (22:58 -0700)
commit799687bcb9c7d6bc66b0dfd8b84fdb0942a30c13
tree90c98a8ac84fc0751bd11e2a6c14a5d07db731b7
parentd770602343c5f9be8064c38bb46370246ff950ff
Provide a simple implementation of "nogit sync"

There's one piece of this that requires a cooperating
repository. Specifically, nogit really wants a merge with no input
required from the user. The "union" merge driver does what we want
here, (putting lines from both sides into the files without conflict
markers). The only trick is that there's no way (that I've found at
least) to request this merge driver from the command line of the "git
merge" invocation. Instead, we need a .gitattributes file to specify
"merge=union".

So, for now, we're relying on the repository being used with nogit to
provide a working .gitattributes file that specifies "merge=union" for
all appropriate paths.
nogit