From: Petr Baudis <pasky@suse.cz>
To: Kirill Smelkov <kirr@landau.phys.spbu.ru>
Cc: Daniel Barkalow <barkalow@iabervon.org>,
Bert Wesarg <bert.wesarg@googlemail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Default exclude rules for Git
Date: Fri, 19 Sep 2008 16:22:11 +0200 [thread overview]
Message-ID: <20080919142211.GE10360@machine.or.cz> (raw)
In-Reply-To: <20080919050612.GA4423@roro3>
On Fri, Sep 19, 2008 at 09:06:12AM +0400, Kirill Smelkov wrote:
> On Thu, Sep 18, 2008 at 03:30:35PM -0400, Daniel Barkalow wrote:
> > It's generally better to put a core.excludesfile entry in your
> > ~/.gitconfig pointing to a ignore file with editor temporaries for the
> > editor(s) you personally use. This will then apply to all git projects you
> > work on.
>
> Yes, this makes sense, thanks.
>
> I've had to add the following to my ~/.gitconfig
>
> [core]
> excludesfile= /home/kirr/.gitignore-kirr
>
>
> because it does not work when '~' is used for $HOME
>
> [core]
> excludesfile= ~/.gitignore-kirr # does not work
>
>
> Is it intended?
>
>
> Still I think since a lot of people have to do the same operation, maybe
> it makes sense to put ignores for popular tools right into project's
> .gitignore.
I'm reluctant to put these universal rules to a project-specific
.gitignores, that doesn't feel like the proper solution to me.
I think it would actually make most sense to insert some conservative
default ignore rules to the Git's stock excludes template. (Or better,
have a single file with default Git's exclude rules. Tools newly
installed on the system could even add their entries there during
installation as Git's quest on world dominations progresses.) I'd
shamelessly propose Cogito's set of default excludes for starters:
*.[ao]
.*
!.git*
tags
*~
#*
(or omit the first line if that feels too C-specific - but I think it
should be extremely rare to find files you _want_ to track even in non-C
projects; and I'd argue anytime that by default ignoring hidden files
is absolutely the sanest thing to do.)
I'm not sure if there wouldn't be opposition from others to this,
though. Especially as Junio is extra-careful about backwards
compatibility now after 1.6.0. :-(
--
Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC. -- Bill Gates
next prev parent reply other threads:[~2008-09-19 14:23 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-18 16:29 A couple of TopGit tweaks Kirill Smelkov
2008-09-18 16:29 ` [TopGit PATCH] .gitignore += vim swap files Kirill Smelkov
2008-09-18 17:24 ` martin f krafft
2008-09-18 17:30 ` Kirill Smelkov
2008-09-18 17:38 ` Bert Wesarg
2008-09-18 17:43 ` Kirill Smelkov
2008-09-18 17:56 ` Bert Wesarg
2008-09-18 17:50 ` Kirill Smelkov
2008-09-18 17:54 ` martin f krafft
2008-09-18 19:30 ` Daniel Barkalow
2008-09-19 5:06 ` Kirill Smelkov
2008-09-19 7:10 ` Bert Wesarg
2008-09-19 7:28 ` Kirill Smelkov
2008-09-19 7:51 ` Andreas Ericsson
2008-09-19 7:52 ` Kirill Smelkov
2008-09-19 10:50 ` Bert Wesarg
2008-09-19 14:22 ` Petr Baudis [this message]
2008-09-19 15:46 ` Default exclude rules for Git Junio C Hamano
2008-09-19 16:33 ` Petr Baudis
2008-09-19 16:42 ` Avery Pennarun
2008-09-18 16:29 ` [TopGit PATCH] tg help: <something>: improve readability Kirill Smelkov
2008-09-18 16:29 ` [TopGit PATCH] tg import: fix + make more robust Kirill Smelkov
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=20080919142211.GE10360@machine.or.cz \
--to=pasky@suse.cz \
--cc=barkalow@iabervon.org \
--cc=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=kirr@landau.phys.spbu.ru \
/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.