← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] Fix for .gitconfig to enable .bzrignore for git and added explanation for its use.

 

Correction, I tried to do that catting with the .gitconfig with
excludesfile = .bzrignore

2015-06-21 14:00 GMT+02:00 Nick Østergaard <oe.nick@xxxxxxxxx>:
> I just tried the catting before and it seems to work.
>
> 2015-06-21 13:53 GMT+02:00 Marco Hess <marco.hess@xxxxxxxxxxxxxx>:
>> I guess you could do that, but I added:
>>
>> [include]
>>     path = ../.gitconfig
>>
>> to my .git/config and I added instructions to that effect in the .gitconfig
>> comments.
>> If you appeded the .gitconfig to .git/config I am nos sure that the path to
>> .bzrignore is right.
>> It might have to be ../.bzrignore then.
>>
>> Marco
>>
>>
>>
>> On 21-Jun-15 21:14, Nick Østergaard wrote:
>>>
>>> Ahh ok, I see. So I will have to do   cat .gitconfig >> .git/config
>>> to actually enable it.
>>>
>>> 2015-06-21 13:18 GMT+02:00 Marco Hess <marco.hess@xxxxxxxxxxxxxx>:
>>>>
>>>> Yes, positive. I read up on it in the git documentation. The only config
>>>> file that Git uses
>>>> within a repository is .git/config. There is not supposed to be a config
>>>> file
>>>> that is part of the repository by default. It only becomes active when
>>>> you
>>>> manually
>>>> enable it.
>>>>
>>>>
>>>> On 21-Jun-15 19:36, Nick Østergaard wrote:
>>>>>
>>>>> But are you sure that you need to enabled that in the .git/config?
>>>>>
>>>>> 2015-06-21 12:04 GMT+02:00 Nick Østergaard <oe.nick@xxxxxxxxx>:
>>>>>>
>>>>>> Ahh that was what was missing, i have been wondering about that for a
>>>>>> while.
>>>>>>
>>>>>> 2015-06-21 5:12 GMT+02:00 Marco Hess <marco.hess@xxxxxxxxxxxxxx>:
>>>>>>>
>>>>>>> I am using Git in my KiCad development and found that I had problems
>>>>>>> with
>>>>>>> ignoring generated files.
>>>>>>>
>>>>>>> After some stuffing around I found it was supposed to be handled
>>>>>>> through
>>>>>>> configuring git to use the .bzringore file through a .gitconfig file.
>>>>>>>
>>>>>>> However, this was not working correctly with the = sign missing in the
>>>>>>> config file that I fixed.
>>>>>>>
>>>>>>> Also, I took the opportunity to add a bit of explantion to the
>>>>>>> .gitconfig
>>>>>>> file as to what its intention is and how to enable it correctly for
>>>>>>> the
>>>>>>> local repository.
>>>>>>>
>>>>>>> Regards,
>>>>>>>
>>>>>>> Marco
>>>>>>>
>>>>>>>
>>>>>>> diff --git a/.gitconfig b/.gitconfig
>>>>>>> index 079dcc9..fa66653 100644
>>>>>>> --- a/.gitconfig
>>>>>>> +++ b/.gitconfig
>>>>>>> @@ -1,2 +1,13 @@
>>>>>>> +# When using the KiCad repository via Git, this .gitconfig
>>>>>>> +# configures Git to use the .bzrignore so there is not need for
>>>>>>> +# a separate .gitignore file.
>>>>>>> +#
>>>>>>> +# However, this .gitconfig file needs to be enable explicitly in your
>>>>>>> +# git configuration. For example in the local .git/config file
>>>>>>> +# add the following lines:
>>>>>>> +#
>>>>>>> +# [include]
>>>>>>> +#    path = ../.gitconfig
>>>>>>> +#
>>>>>>>    [core]
>>>>>>> -    excludesfile .bzrignore
>>>>>>> +    excludesfile = .bzrignore
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~kicad-developers
>>>>>>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~kicad-developers
>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>
>>>>
>>>> --
>>>> Marco Hess
>>>> Through IP Pty. Ltd. - AUSTRALIA
>>>> www.through-ip.com  | marco.hess@xxxxxxxxxxxxxx
>>>> p: +61 407 78 55 66 | f: +61 8 8121 6191
>>>>
>>
>> --
>> Marco Hess
>> Through IP Pty. Ltd. - AUSTRALIA
>> www.through-ip.com  | marco.hess@xxxxxxxxxxxxxx
>> p: +61 407 78 55 66 | f: +61 8 8121 6191
>>


References