summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb6ae7f)
raw | patch | inline | side by side (parent: eb6ae7f)
author | J. Bruce Fields <bfields@citi.umich.edu> | |
Thu, 11 Jan 2007 04:23:37 +0000 (23:23 -0500) | ||
committer | J. Bruce Fields <bfields@citi.umich.edu> | |
Thu, 11 Jan 2007 04:23:37 +0000 (23:23 -0500) |
Junio left a few comments in his previous patch; deal with
each of them.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
each of them.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index 7cd4dd6ab0314f7e5ea6c30b9ce8eabff7e3a0cd..ae21ef239e7300f1006f4d1098d7b31ddfc4764b 100644 (file)
at step 3, git maintains a snapshot of the tree's contents in a
special staging area called "the index."
-By default, the content of the index is identical to that of the
-HEAD. The command "git diff --cached" shows the difference between
-HEAD and the index, so you should no output from that command.
-
-////////////////////////////////////////////////
-
-This is talking about not "by default", but "when you start
-out". The last sentence does not parse for me...
-
-////////////////////////////////////////////////
-
+At the beginning, the content of the index will be identical to
+that of the HEAD. The command "git diff --cached", which shows
+the difference between the HEAD and the index, should therefore
+produce no output at that point.
Modifying the index is easy:
$ git am -3 patches.mbox
-------------------------------------------------
-////////////////////////////////////////////////
-
-If you allow git-am to fall back to 3-way merge with -3, you
-would see conflicts and "resolving a merge" techniques apply.
-Otherwise "conflicts" will just fail the patch and your working
-tree and index are left untouched.
-
-////////////////////////////////////////////////
-
Git will apply each patch in order; if any conflicts are found, it
will stop, and you can fix the conflicts as described in
-"<<resolving-a-merge,Resolving a merge>>". Once the index is updated
-with the results of the conflict resolution, instead of creating a
-new commit, just run
+"<<resolving-a-merge,Resolving a merge>>". (The "-3" option tells
+git to perform a merge; if you would prefer it just to abort and
+leave your tree and index untouched, you may omit that option.)
+
+Once the index is updated with the results of the conflict
+resolution, instead of creating a new commit, just run
-------------------------------------------------
$ git am --resolved