Skip to contentSkip to conversation

Wine + GIT

DISCUSSION [email protected] 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

The paragraph "Once you have finished editting [sic]..." needs to be followed by:

git-update-index those paths you hand corrected
git-commit

This is what happens when you have people too used to using the pre-porcelain plumbing.

How about just
git-commit <the paths you hand corrected>

If you forget any, the commit will fail, but they will have been updated in the index, and you don't need to mention them again in the next attempt.

(Grump... I just noticed that the "recursive" merge stratgy *doesn't* generate a merged file containing conflict markers, at least not in the case I tried. Instead I get "a~HEAD" and "a~branch" files. Time to fix the docs...)

#1 lore raw
Quoted 4 lines · On Thu, Dec 08, 2005 at 02:30:00AM -0500, [email protected] wrote:

(Grump... I just noticed that the "recursive" merge stratgy *doesn't* generate a merged file containing conflict markers, at least not in the case I tried. Instead I get "a~HEAD" and "a~branch" files. Time to fix the docs...)

In the most common case, i.e., when you have a file 'a' in the common ancestor and 'a' have been modified in both A and B (where A and B are the branches we are going to merge) then the recursive strategy should generate a merged file with merge(1), which will produce conflict markers if there are conflicts. Any other behaviour is a bug.

However, in some other cases such as rename/rename, file/directory and add/add conflicts "a~A" and "a~B" will be created in the working directory. The recursive strategy will (or, is supposed to) tell you about such things, though.

- Fredrik

#2 lore raw
Quoted 4 lines · Fredrik Kuivinen

However, in some other cases such as rename/rename, file/directory and add/add conflicts "a~A" and "a~B" will be created in the working directory. The recursive strategy will (or, is supposed to) tell you about such things, though.

I think one reason for this was because read-tree -m was the only way to create higher stage entries in the index, and after detecting renames, the recursive merge strategy did not have a good way to insert these as different stages in the index.

I extended update-index --index-info a little bit to let people insert higher stage entries in the index, so we could if we wanted to.

Here are the differences I know about between resolve and recursive other than ~A ~B:

- in add/add case, merge-one-file tries to be cuter and leaves conflict-marked merge result.

- content conflict in a renamed path gets its index entry collapsed, unlike other content conflicts.