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

Re: [git-patch] add Porting/

Thread Previous | Thread Next
Rafael Garcia-Suarez
May 4, 2008 22:25
Re: [git-patch] add Porting/
Message ID:
2008/5/4 Jim Cromie <>:
>  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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About