git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 0/4] doc: git-add: clarify DESCRIPTION section

From
Julia Evans via GitGitGadget <gitgitgadget@gmail.com>
Date
Aug 13, 2025, 23:20 UTC
Message-ID
<pull.1952.v2.git.1755127218.gitgitgadget@gmail.com>
In-Reply-To
<pull.1952.git.1755029249.gitgitgadget@gmail.com>
 * Remove changes to SYNOPSIS
 * Add a sentence describing what "the index" is.
 * Shorten the terminology note
 * Say "The git add command" instead of git add
Julia Evans (4):
  doc: git-add: start man page with an example
  doc: git-add: simplify discussion of ignored files
  doc: git-add: make explanation less dry
  doc: git-add: explain inconsistent terminology
 Documentation/git-add.adoc | 64 ++++++++++++++++++++------------------
 1 file changed, 33 insertions(+), 31 deletions(-)
base-commit: 2c2ba49d55ff26c1082b8137b1ec5eeccb4337d1
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1952%2Fjvns%2Fclarify-add-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1952/jvns/clarify-add-v2
Pull-Request: https://github.com/gitgitgadget/git/pull/1952
Range-diff vs v1:
 1:  3a2cc38b72f < -:  ----------- doc: git-add: remove options from SYNOPSIS
 2:  310d2c1d8f7 ! 1:  d041d09589b doc: git-add: start man page with an example
     @@ Documentation/git-add.adoc: git-add(1)
       
       SYNOPSIS
       --------
     -@@ Documentation/git-add.adoc: git add [<options>] [--] [<pathspec>...]
     +@@ Documentation/git-add.adoc: git add [--verbose | -v] [--dry-run | -n] [--force | -f] [--interactive | -i] [-
       
       DESCRIPTION
       -----------
     @@ Documentation/git-add.adoc: git add [<options>] [--] [<pathspec>...]
      -after making any changes to the working tree, and before running
      -the commit command, you must use the `add` command to add any new or
      -modified files to the index.
     -+Add new or changed files to the index (also known as "staging area") to
     -+prepare for a commit.
     ++Add new or changed files to the index to prepare for a commit. The
     ++"index" (also known as "staging area") is where Git stores the changes
     ++that will be in the next commit.
      +
      +By default, `git commit` only commits changes that you've added to the
      +index. For example, if you've edited `file.c` and want to commit your
 3:  3f4ab615069 = 2:  63c9e0361dc doc: git-add: simplify discussion of ignored files
 4:  34b09deb61a ! 3:  ce1eafb0286 doc: git-add: make explanation less dry
     @@ Documentation/git-add.adoc: You can also add only part of your changes to a file
      -adds the content of the specified file(s) at the time the add command is
      -run; if you want subsequent changes included in the next commit, then
      -you must run `git add` again to add the new content to the index.
     -+`git add` only adds the changes at the time that you run it. If you edit
     -+`file.c` after adding it, you need to run `git add file.c` again before
     -+committing.
     ++The `git add` command only adds the changes at the time that you run it.
     ++If you edit `file.c` after adding it, you need to run `git add file.c`
     ++again before committing.
       
      -The `git status` command can be used to obtain a summary of which
      -files have changes that are staged for the next commit.
 5:  f7e8e4c63a1 ! 4:  9e595f9ad59 doc: git-add: explain inconsistent terminology
     @@ Documentation/git-add.adoc: exact filename of an ignored file (e.g. `git add ign
       add` will fail with a list of ignored files. Otherwise it will silently
       ignore the file.
       
     -+TERMINOLOGY NOTE
     -+----------------
     -+
     ++[NOTE]
      +Git uses the terms "staging area", "index" and "cache" interchangeably
     -+for historical reasons. Many commands have flags like `--staged`,
     -+`--index`, or `--cached`, and they all refer to the index.
     ++for historical reasons.
      +
       OPTIONS
       -------
-- 
gitgitgadget
Previous: Julia EvansNext: Julia Evans via GitGitGadget
Message 22 of 59 in “doc: git-add: clarify DESCRIPTION section”
  1. 0/5 doc: git-add: clarify DESCRIPTION sectionJulia Evans via GitGitGadget, Aug 12, 2025
  2. 1/5 doc: git-add: remove options from SYNOPSISJulia Evans via GitGitGadget, Aug 12, 2025
  3. Junio C HamanoAug 12, 2025
  4. Julia EvansAug 13, 2025
  5. Jean-Noël AVILAAug 13, 2025
  6. 2/5 doc: git-add: start man page with an exampleJulia Evans via GitGitGadget, Aug 12, 2025
  7. Junio C HamanoAug 12, 2025
  8. Julia EvansAug 12, 2025
  9. Junio C HamanoAug 12, 2025
  10. Julia EvansAug 12, 2025
  11. D. Ben KnobleAug 13, 2025
  12. Junio C HamanoAug 14, 2025
  13. Julia EvansAug 14, 2025
  14. Junio C HamanoAug 15, 2025
  15. 3/5 doc: git-add: simplify discussion of ignored filesJulia Evans via GitGitGadget, Aug 12, 2025
  16. D. Ben KnobleAug 13, 2025
  17. 4/5 doc: git-add: make explanation less dryJulia Evans via GitGitGadget, Aug 12, 2025
  18. 5/5 doc: git-add: explain inconsistent terminologyJulia Evans via GitGitGadget, Aug 12, 2025
  19. Chris TorekAug 12, 2025
  20. Junio C HamanoAug 12, 2025
  21. Julia EvansAug 12, 2025
  22. 0/4 doc: git-add: clarify DESCRIPTION sectionJulia Evans via GitGitGadget, Aug 13, 2025
  23. 1/4 doc: git-add: start man page with an exampleJulia Evans via GitGitGadget, Aug 13, 2025
  24. Junio C HamanoAug 15, 2025
  25. Jean-Noël AVILAAug 15, 2025
  26. Junio C HamanoAug 15, 2025
  27. Jean-Noël AVILAAug 17, 2025
  28. Julia EvansAug 19, 2025
  29. 2/4 doc: git-add: simplify discussion of ignored filesJulia Evans via GitGitGadget, Aug 13, 2025
  30. D. Ben KnobleAug 14, 2025
  31. Junio C HamanoAug 14, 2025
  32. 3/4 doc: git-add: make explanation less dryJulia Evans via GitGitGadget, Aug 13, 2025
  33. Junio C HamanoAug 14, 2025
  34. Julia EvansAug 15, 2025
  35. D. Ben KnobleAug 15, 2025
  36. Junio C HamanoAug 15, 2025
  37. D. Ben KnobleAug 16, 2025
  38. Junio C HamanoAug 15, 2025
  39. Julia EvansAug 19, 2025
  40. Jean-Noël AVILAAug 21, 2025
  41. 4/4 doc: git-add: explain inconsistent terminologyJulia Evans via GitGitGadget, Aug 13, 2025
  42. Junio C HamanoAug 14, 2025
  43. Julia EvansAug 19, 2025
  44. 0/3 doc: git-add: clarify DESCRIPTION sectionJulia Evans via GitGitGadget, Aug 19, 2025
  45. 1/3 Git 2.51Junio C Hamano via GitGitGadget, Aug 19, 2025
  46. rsbecker@nexbridge.comAug 19, 2025
  47. Junio C HamanoAug 19, 2025
  48. D. Ben KnobleAug 19, 2025
  49. Julia EvansAug 19, 2025
  50. rsbecker@nexbridge.comAug 19, 2025
  51. 3/3 doc: git-add: simplify discussion of ignored filesJulia Evans via GitGitGadget, Aug 19, 2025
  52. Junio C HamanoAug 21, 2025
  53. 2/3 doc: git-add: clarify intro & add an exampleJulia Evans via GitGitGadget, Aug 19, 2025
  54. Junio C HamanoAug 21, 2025
  55. Julia EvansAug 22, 2025
  56. 0/2 doc: git-add: clarify DESCRIPTION sectionJulia Evans via GitGitGadget, Aug 29, 2025
  57. 1/2 doc: git-add: clarify intro & add an exampleJulia Evans via GitGitGadget, Aug 29, 2025
  58. 2/2 doc: git-add: simplify discussion of ignored filesJulia Evans via GitGitGadget, Aug 29, 2025
  59. Junio C HamanoAug 29, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.