[git-buildpackage] Ignoring untracked files

Inaki Malerba inaki at malerba.space
Tue Feb 26 15:39:59 CET 2019


Hi Guido,

On 24/2/19 08:53, Guido Günther wrote:
> Hi,
>> +
>> +        to_ignore = b' ?? debian/.cache\n'
>> +        [out.remove(item) for item in out if item == to_ignore ]
>> +
>>          if ret:
>>              raise GitRepositoryError("Can't get repository status")
>>          return out
>> ```
> If you don't want to use --git-ignore-new you should introduce a
> --git-ignore-pattern="..." (that can be given several times) to make
> this configurable.

I just submitted a PR[0]. We can discuss it there. 

Isn't a regex enough to replace multiple arguments? The idea of the
option is to ignore simple paths, otherwise you'd probably want to use
--git-ignore-new

> That said can't you put the ccache data outside of the build directory?

Sadly no. From the docs[1]: "You can only use paths that are within the
project workspace"


0_ https://github.com/agx/git-buildpackage/pull/66/files

1_ https://docs.gitlab.com/ee/ci/yaml/#cache


Cheers,

-- 
- ina




More information about the git-buildpackage mailing list