What can be auto-merged by a tool unaware of the programming language?
- add file
- delete file
- rename file: http://stackoverflow.com/questions/2701790/git-merge-with-renamed-files
- change parts of a file which don't overlap with other changes
add
- The new Jasmine spec has an error.
- A new configuration file overrides the default configuration in a dysfunctional way.
- The main module is gone so the app won't run.
- A CSS file is gone so the pages aren't styled.
- require("Counter") fails because Counter.js is now TheCounter.js.
function square(x) {A careful engineer reviews all changes (his changes & others') to increase the chance of a problem-free merge:
- return x * x; #
+ return x * x * x;
}
git diff <branch> <branch>
git diff master rough
Unfortunately:
git mergetool
only shows conflicts.
Unit tests provide an additional check.
Now, there's a "semantic" merge tool which understands the programming language:
No comments:
Post a Comment