From: "J. Bruce Fields" <bfields@fieldses.org>
To: Jonathan Nieder <jrnieder@uchicago.edu>
Cc: git@vger.kernel.org
Subject: Re: Documentation: user-manual: "git commit -a" doesn't motivate .gitignore
Date: Thu, 7 Aug 2008 08:24:20 -0400 [thread overview]
Message-ID: <20080807122420.GA16343@fieldses.org> (raw)
In-Reply-To: <Pine.GSO.4.62.0808061603340.18817@harper.uchicago.edu>
On Wed, Aug 06, 2008 at 04:22:00PM -0500, Jonathan Nieder wrote:
> "git commit -a" ignores untracked files and follows all tracked
> files, regardless of whether they are listed in .gitignore. So
> don't use it to motivate gitignore.
Makes sense to me.
--b.
>
> Signed-off-by: Jonathan Nieder <jrnieder@uchicago.edu>
> ---
> I noticed this while reading through the git-scm book, which
> looks very good. If I am missing something, I would be very
> happy to know. Maybe the sort of person that wants to track the
> exact contents of the working tree would prefer
> "git commit -a -i ." over "git commit -a"?
>
> Documentation/user-manual.txt | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt
> index 43f4e39..f421689 100644
> --- a/Documentation/user-manual.txt
> +++ b/Documentation/user-manual.txt
> @@ -1128,8 +1128,8 @@ This typically includes files generated by a build process or temporary
> backup files made by your editor. Of course, 'not' tracking files with git
> is just a matter of 'not' calling "`git-add`" on them. But it quickly becomes
> annoying to have these untracked files lying around; e.g. they make
> -"`git add .`" and "`git commit -a`" practically useless, and they keep
> -showing up in the output of "`git status`".
> +"`git add .`" practically useless, and they keep showing up in the output of
> +"`git status`".
>
> You can tell git to ignore certain files by creating a file called .gitignore
> in the top level of your working directory, with contents such as:
> --
> 1.6.0.rc1.228.ge730
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2008-08-07 12:28 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 ` [PATCH] Documentation: clarify that git-commit only works with tracked files Jonathan Nieder
2008-08-07 0:39 ` 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 ` J. Bruce Fields [this message]
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=20080807122420.GA16343@fieldses.org \
--to=bfields@fieldses.org \
--cc=git@vger.kernel.org \
--cc=jrnieder@uchicago.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.