git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@uchicago.edu>
To: Miklos Vajna <vmiklos@frugalware.org>
Cc: git@vger.kernel.org
Subject: [PATCH] Documentation: clarify that git-commit only works with tracked files
Date: Wed, 6 Aug 2008 19:15:35 -0500 (CDT)	[thread overview]
Message-ID: <Pine.GSO.4.62.0808061906490.24977@harper.uchicago.edu> (raw)
In-Reply-To: <Pine.GSO.4.62.0808061725450.21683@harper.uchicago.edu>

A user unfamiliar with CVS might not realize that a git-add is
needed before commiting new files.  So emphasize that "git commit
<path>..." only commits files already in the index.

Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
---
	I keep on forgetting and getting annoyed when "git commit
	newfile.c" does not work.  From the same confusion I suggested
	git commit -A without really thinking about what it meant.
	This change should make the behavior easier to understand
	and remember.  Thanks for the help.

 Documentation/git-commit.txt |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt
index 0e25bb8..9b00ccb 100644
--- a/Documentation/git-commit.txt
+++ b/Documentation/git-commit.txt
@@ -27,9 +27,10 @@ The content to be added can be specified in several ways:
 2. by using 'git-rm' to remove files from the working tree
    and the index, again before using the 'commit' command;
 
-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;
+3. by listing some known 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;
 
 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.rc1.91.gf0c3

  parent reply	other threads:[~2008-08-07  0:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 21:22 Documentation: user-manual: "git commit -a" doesn't motivate .gitignore Jonathan Nieder
2008-08-06 21:47 ` Miklos Vajna
2008-08-06 22:29   ` Jonathan Nieder
2008-08-06 22:54     ` Jonathan Nieder
2008-08-07  0:15     ` Jonathan Nieder [this message]
2008-08-07  0:39       ` [PATCH] Documentation: clarify that git-commit only works with tracked files Johannes Schindelin
2008-08-07  1:14         ` Jonathan Nieder
2008-08-07 11:00         ` Miklos Vajna
2008-08-07 11:52         ` Peter Krefting
2008-08-07 12:24 ` Documentation: user-manual: "git commit -a" doesn't motivate .gitignore J. Bruce Fields

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.62.0808061906490.24977@harper.uchicago.edu \
    --to=jrnieder@uchicago.edu \
    --cc=git@vger.kernel.org \
    --cc=vmiklos@frugalware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).