I'm looking for a way I can automatically add all new files, but not mark conflicts as resolved.
I have set up some ant scripts to do basic Git functions to help non-developers handle routine operations. Been doing this for a while and decided that it would be safe to have the "commit" script automatically add new files. Easy, just have the script do git add --all
before the commit.
Except that that has the unintended side effect of marking any conflicts as resolved, which I absolutely do not want to do. Conflicts should stay unresolved so the user knows something is wrong and will ask me how to handle it.
Surprisingly, there doesn't seem to be an option to make git add
not mark resolved conflicts. I am about to do some experimenting to see what the scripts need to look for to determine that a conflict resolution is in progress and check that. But thought I would ask folks if there is an easier way to do this.