From mboxrd@z Thu Jan 1 00:00:00 1970 From: "J. Bruce Fields" Subject: Re: Documentation: user-manual: "git commit -a" doesn't motivate .gitignore Date: Thu, 7 Aug 2008 08:24:20 -0400 Message-ID: <20080807122420.GA16343@fieldses.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Jonathan Nieder X-From: git-owner@vger.kernel.org Thu Aug 07 14:28:01 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KR4b2-00074H-MD for gcvg-git-2@gmane.org; Thu, 07 Aug 2008 14:28:01 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753824AbYHGMY0 (ORCPT ); Thu, 7 Aug 2008 08:24:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753890AbYHGMYZ (ORCPT ); Thu, 7 Aug 2008 08:24:25 -0400 Received: from mail.fieldses.org ([66.93.2.214]:51083 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754801AbYHGMYX (ORCPT ); Thu, 7 Aug 2008 08:24:23 -0400 Received: from bfields by fieldses.org with local (Exim 4.69) (envelope-from ) id 1KR4XU-0004SD-9I; Thu, 07 Aug 2008 08:24:20 -0400 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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 > --- > 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