[OE-core] [PATCH] .gitignore: add /bitbake to the ignore list for external distributions

Jason Wessel jason.wessel at windriver.com
Wed May 9 14:15:37 UTC 2012


On 05/09/2012 08:58 AM, Koen Kooi wrote:
> 
> Op 9 mei 2012, om 15:46 heeft Jason Wessel het volgende geschreven:
> 
>> External distributions based on the oe-core will typically include
>> bitbake in the top level directory.
> 
> Really?
> 


Certainly I cannot speak for everyone, but I would like to "attempt" establish some kind of standard and this forum is probably the best place to discuss it.  We would like to be able to assemble pristine git controlled pieces that comprise what you find in the Yocto Project.  I believe that Richard Purdie and Jeff Polk discussed this in a different forum and I was trying to "clean up" the assembly so to speak. 


>>
>> diff --git a/.gitignore b/.gitignore
>> index 04e36c5..366151c 100644
>> --- a/.gitignore
>> +++ b/.gitignore
>> @@ -1,3 +1,4 @@
>> +/bitbake
> 
> Provided we want bitbake in here, shouldn't it be 'bitbake' to match the rest of the file?


According to the git documentation, "man gitignore", you want the slash for the following reason:

--- excerpt from man page ---
       ·   If the pattern does not contain a slash /, git treats it as a shell
           glob pattern and checks for a match against the pathname relative
           to the location of the .gitignore file (relative to the toplevel of
           the work tree if not from a .gitignore file).
-----------------------------

In theory there should not be a reason we need to use a pattern match.

Cheers,
Jason.




More information about the Openembedded-core mailing list