develooper Front page | perl.perl5.porters | Postings from May 2008

Re: [git-patch] add Porting/mk_gitignore.pl

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
May 4, 2008 22:25
Subject:
Re: [git-patch] add Porting/mk_gitignore.pl
Message ID:
b77c1dce0805042225u5076d82cq11f5e7db73916b8d@mail.gmail.com
2008/5/4 Jim Cromie <jim.cromie@gmail.com>:
>  attached patch adds new script to generate a .gitignore file from MANIFEST.
>  It uses a universal ignore directive (*\n), followed by negated
>  ignore directives to *attend* to each file in MANIFEST

That seems completely backwards to me.

>  The downside of this approach is that git-status will no longer remind you
>  of new files youve added to the working tree, but not git-add'd.

Which is certainly the single thing that annoys me the most in
perforce. It seems that most of our "oops" commits in perforce are
along the lines of "oops, I forgot to p4 add this new file".

>  This can be fixed by narrowing the universal ignore to something like
>
>  *.[oa]
>  *.so
>  *.exists
>  *.bs
>  # others are needed..

I think that listing explicitly what we don't want to see is a better
approach. So, those files, plus config.h, Makefiles, *.old,
const-*.inc, opmini.c, perlmain.c, lib/auto/*, etc, etc. That will be
an awful lot of files, and a script like yours can help maintaining a
.gitignore file, but I don't want a bare "*" in there.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About