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

[PATCH] git-commit.txt - mention that files listed on the command line must be known to git.

From
MBMark Burton <markb@ordern.com>
Date
Nov 18, 2008, 22:33 UTC
Message-ID
<20081118223344.5c1f2de1@crow>
Signed-off-by: Mark Burton <markb@ordern.com>
---
 Adding this advertises the current behaviour and should stop anyone else
 asking the same question!
 Documentation/git-commit.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 2e62165..a1ce9a8 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -29,7 +29,8 @@ The content to be added can be specified in several ways:
 
 3. by listing files as arguments to the 'commit' command, in which
    case the commit will ignore changes staged in the index, and instead
-   record the current content of the listed files;
+   record the current content of the listed files (which must already
+   be known to git);
 
 4. by using the -a switch with the 'commit' command to automatically
    "add" changes from all known files (i.e. all files that are already
-- 
1.6.0.4
Message 1 of 1 in “git-commit.txt - mention that files listed on the command line must be known to git.”
  1. git-commit.txt - mention that files listed on the command line must be known to git.Mark Burton, Nov 18, 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.