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

[PATCH] Clarified the meaning of git-add -u in the documentation

From
PKPekka Kaitaniemi <kaitanie@cc.helsinki.fi>
Date
Feb 20, 2008, 22:29 UTC
Message-ID
<20080220222939.GA28724@localdomain>

The git-add documentation did not state clearly that the -u switch updates only the tracked files that are in the current directory and its subdirectories.

Signed-off-by: Pekka Kaitaniemi <kaitanie@cc.helsinki.fi>
---
 Documentation/git-add.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-add.txt b/Documentation/git-add.txt
index 9d2ac86..4779909 100644
--- a/Documentation/git-add.txt
+++ b/Documentation/git-add.txt
@@ -74,8 +74,8 @@ OPTIONS
 	Update only files that git already knows about. This is similar
 	to what "git commit -a" does in preparation for making a commit,
 	except that the update is limited to paths specified on the
-	command line. If no paths are specified, all tracked files are
-	updated.
+	command line. If no paths are specified, all tracked files in the
+	current directory and its subdirectories are updated.
 
 \--refresh::
 	Don't add the file(s), but only refresh their stat()
-- 
1.5.4.2
Message 1 of 1 in “Clarified the meaning of git-add -u in the documentation”
  1. Clarified the meaning of git-add -u in the documentationPekka Kaitaniemi, Feb 20, 2008

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.