]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: rephrase the purpose of the staging area
authorJulia Evans <julia@jvns.ca>
Fri, 29 Aug 2025 11:55:02 +0000 (11:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Aug 2025 17:21:08 +0000 (10:21 -0700)
Git does not really "store the contents of the next commit"
anywhere; rather, you the user use the index to prepare it.

Signed-off-by: Julia Evans <julia@jvns.ca>
[jc; made the change relative to what is already in 'next']
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-add.adoc

index bf793d2894933997ef99ea70352cabd5af7dadd6..ad629c46c5f39a538cef45015226e82a733039b8 100644 (file)
@@ -17,8 +17,8 @@ git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [-
 DESCRIPTION
 -----------
 Add contents of new or changed files to the index. The "index" (also
-known as "staging area") is where Git stores the contents of the next
-commit.
+known as the "staging area") is what you use to prepare the contents of
+the next commit.
 
 When you run `git commit` without any other arguments, it will only
 commit staged changes. For example, if you've edited `file.c` and want