Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-Git CPAN distribution.

Report information
The Basics
Id: 59647
Status: open
Priority: 0/
Queue: Dist-Zilla-Plugin-Git

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: ::Init creates a .gitignore
I hate to say it but I think most people wouldn't want certain things in there dzil repo's so perhaps creating a .gitignore file by default would be good. {{$dist->name}}* .build these are 2 things I know I don't want. Also might be good to assemble a list of temporary files that should be ignored that aren't dzil specific like *.swp which is a vim temporary file. I've been trying to work out how to code this up myself but I'm not sure where I need to hook into dzil to get it done.
Show quoted text
> these are 2 things I know I don't want. Also might be good to assemble a > list of temporary files that should be ignored that aren't dzil specific > like
FWIW, this is mine: http://github.com/2shortplanks/Sub-Clean/blob/master/.gitignore It excludes Perl's temporary build directories. This might not be necessary with a true dzil build environment since you don't create the build directories in the root, but in the directory that you've probably already excluded above. As per editor junk, this is what Module::Pluggable considers to be editor junk. That is: - files ending in ~ - files ending in the extension .swp or .sow - files beginning with F<.#>. Mark.
Show quoted text
> {{$dist->name}}*
I found out last night that this, has to be this /{{$dist->name}}* to avoid matching say Moose.pm if your dist were Moose
I've always used {{$dist->name}}-* without problems, although I suppose /{{$dist->name}}-* might be better.
On Tue Jul 27 11:45:39 2010, CJM wrote: Show quoted text
> I've always used {{$dist->name}}-* without problems, although I suppose > /{{$dist->name}}-* might be better.
right... it only creates a problem if you've got a ... Single Part Module name... such as if you create dzil new Test... {{$dist->name}}* would cause a problem with lib/Test.pm
sorry for the time answering - real life kicked in. wouldn't it be better to add a ~/.dzil/profiles/default/skel/.gitignore file containing whatever you want? this is what i do...
Subject: Re: [rt.cpan.org #59647] ::Init creates a .gitignore
Date: Wed, 2 Feb 2011 03:34:14 -0600
To: bug-Dist-Zilla-Plugin-Git [...] rt.cpan.org
From: Caleb Cushing <xenoterracide [...] gmail.com>
On Wed, Feb 2, 2011 at 3:29 AM, Jerome Quelin via RT <bug-Dist-Zilla-Plugin-Git@rt.cpan.org> wrote: Show quoted text
> wouldn't it be better to add a ~/.dzil/profiles/default/skel/.gitignore > file containing whatever you want? this is what i do...
well that's what I do now. but I figure all this is convenience anyways, so lets add as much convenience as possible. there's not a single thing you can't do by hand, hell I could prepopulate .git/ even, then do my git add after. -- Caleb Cushing http://xenoterracide.com