Currently I tried following options:
checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE |
GIT_CHECKOUT_ALLOW_CONFLICTS |
GIT_CHECKOUT_CONFLICT_STYLE_MERGE;
checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE |
GIT_CHECKOUT_CONFLICT_STYLE_MERGE;
checkout_options.checkout_strategy = GIT_CHECKOUT_SAFE |
GIT_CHECKOUT_ALLOW_CONFLICTS;
The most promising was the first set of flags – perform checkout even when conflicts are expected, and "Write normal merge files for conflicts", as header of *_STYLE_MERGE
says. I had hoped that this sentence means that in files with conflicts, there gonna be the "<<<<<<<<<<< theirs", etc. preambles wrapping conflicting code blocks. Instead, the file is left untouched. Is there a way to have the preambles, etc. written to files?