"Shawn O. Pearce" <spearce@xxxxxxxxxxx> writes: > Since `git add` is the approved porcelain for an end-user to invoke > when they want to manipulate the index, porcelain documentation > should steer the user to this command rather than the pure plumbing > update-index. > > Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> > --- > > Maybe this isn't the best change to make. I dunno. I think it is > cleaner to keep the user looking at add instead of update-index, > but what do I know. :-) I think I agree with most of your changes, except in a few places we should suggest 'git rm' to resolve conflict as deletion of paths. On top of your patch, something like the attached. One thing I suspect is that currently we refuse to 'git rm' if the index does not match working tree and HEAD, but it might make sense to skip that check when the path is unmerged in the index. diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index f65514e..1ae77be 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -61,7 +61,8 @@ OPTIONS + When a merge conflict happens, the index entries for conflicting paths are left unmerged, and you need to resolve the conflicts -and mark the resolved paths with `git add`. +and mark the resolved paths with `git add` (or `git rm` if the merge +should result in deletion of the path). <new_branch>:: Name for the new branch. diff --git a/Documentation/git-merge.txt b/Documentation/git-merge.txt index 911c69b..9c08efa 100644 --- a/Documentation/git-merge.txt +++ b/Documentation/git-merge.txt @@ -136,7 +136,7 @@ After seeing a conflict, you can do two things: * Resolve the conflicts. `git-diff` would report only the conflicting paths because of the above 2. and 3.. Edit the - working tree files into a desirable shape, `git-add` + working tree files into a desirable shape, `git-add` or `git-rm` them, to make the index file contain what the merge result should be, and run `git-commit` to commit the result. diff --git a/Documentation/git-runstatus.txt b/Documentation/git-runstatus.txt index e95662b..8bb52f4 100644 --- a/Documentation/git-runstatus.txt +++ b/Documentation/git-runstatus.txt @@ -16,7 +16,7 @@ DESCRIPTION Examines paths in the working tree that has changes unrecorded to the index file, and changes between the index file and the current HEAD commit. The former paths are what you _could_ -commit by running 'git add' before running 'git +commit by running 'git add' (or 'git rm' if you are deleting) before running 'git commit', and the latter paths are what you _would_ commit by running 'git commit'. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html