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

[PATCH] Document git add -u introduced earlier.

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
May 6, 2007, 21:11 UTC
Message-ID
<11784859173725-git-send-email-Matthieu.Moy@imag.fr>
In-Reply-To
<11784859173386-git-send-email-Matthieu.Moy@imag.fr>

This command was implemented, but not documented in dfdac5d9b877641d3aad8ec49f64c2730a3487e3.

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
---
 Documentation/git-add.txt |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 755d718..ea27018 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -7,7 +7,7 @@ git-add - Add file contents to the changeset to be committed next
 
 SYNOPSIS
 --------
-'git-add' [-n] [-v] [-f] [--interactive | -i] [--] <file>...
+'git-add' [-n] [-v] [-f] [--interactive | -i] [-u] [--] <file>...
 
 DESCRIPTION
 -----------
@@ -56,6 +56,10 @@ OPTIONS
 	Add modified contents in the working tree interactively to
 	the index.
 
+-u::
+	Update all files that git already knows about. This is what
+	"git commit -a" does in preparation for making a commit.
+
 \--::
 	This option can be used to separate command-line options from
 	the list of files, (useful when filenames might be mistaken
-- 
1.5.1.3
Previous: Matthieu MoyNext: Matthieu Moy
Message 2 of 10 in “Document the fact that commit -a is the way to go for simple operations”
  1. Document the fact that commit -a is the way to go for simple operationsMatthieu Moy, May 6, 2007
  2. Document git add -u introduced earlier.Matthieu Moy, May 6, 2007
  3. Added a reference to git-add in the documentation for git-update-indexMatthieu Moy, May 6, 2007
  4. Document "commit --only".Matthieu Moy, May 6, 2007
  5. Nicolas PitreMay 6, 2007
  6. Matthieu MoyMay 7, 2007
  7. Matthieu MoyMay 7, 2007
  8. Nicolas PitreMay 6, 2007
  9. Matthieu MoyMay 7, 2007
  10. Johannes SchindelinMay 7, 2007

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.