aboutsummaryrefslogtreecommitdiff
path: root/Documentation/tutorial-2.txt
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-02-17 04:43:42 -0500
committerJunio C Hamano <junkio@cox.net>2007-02-17 10:20:27 -0800
commitd7f078b8b92b1a29f9dd62c2c470fa51e15e2ffa (patch)
tree20f6c599862aaa92534de70cf76d7289e0b3aeea /Documentation/tutorial-2.txt
parent5ca2db53763ed93a75de7ddbda753fc09327d7aa (diff)
downloadgit-d7f078b8b92b1a29f9dd62c2c470fa51e15e2ffa.tar.gz
git-d7f078b8b92b1a29f9dd62c2c470fa51e15e2ffa.tar.xz
Convert update-index references in docs to add.
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@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/tutorial-2.txt')
-rw-r--r--Documentation/tutorial-2.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/tutorial-2.txt b/Documentation/tutorial-2.txt
index 8d8999271..af8d43bd1 100644
--- a/Documentation/tutorial-2.txt
+++ b/Documentation/tutorial-2.txt
@@ -227,7 +227,7 @@ $ git diff
@@ -1 +1,2 @@
hello world!
+hello world, again
-$ git update-index file.txt
+$ git add file.txt
$ git diff
------------------------------------------------
@@ -260,7 +260,7 @@ hello world!
hello world, again
------------------------------------------------
-So what our "git update-index" did was store a new blob and then put
+So what our "git add" did was store a new blob and then put
a reference to it in the index file. If we modify the file again,
we'll see that the new modifications are reflected in the "git-diff"
output: