home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] more git pedantry -- clarifications about .gitignore

  • Subject: Re: [OCLUG-Tech] more git pedantry -- clarifications about .gitignore
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Wed, 29 Apr 2015 11:00:16 -0400 (EDT)
On Wed, 29 Apr 2015, Alex Pilon wrote:

> On Wed, Apr 29, 2015 at 08:33:51AM -0400, Robert P. J. Day wrote:
> >   some (hopefully) trivial questions about .gitignore, since the
> > actual documentation isn't as precise as it could be.
>
> Which? gitignore(5)?

  in the end, that's the one i'm using as the authoritative source.

> >   and another thing ... why both of these lines?
> >
> > include/generated
> > arch/*/include/generated
> >
> > isn't there a wildcard pattern that would subsume both of those
> > entries?
>
> **/include/generated

  that's what i thought, given that the "**/" allows matching in the
current directory. so, aesthetically, that pair of lines could be
condensed. actually, i'm wondering why the simple directory reference:

  generated/

wouldn't be the best entry. surely the name "generated" is defined in
the kernel as representing generated content and should never be
tracked, no?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================