[git-buildpackage] Ignoring untracked files

Guido Günther agx at sigxcpu.org
Sun Feb 24 12:53:55 CET 2019


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.

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

Cheers,
 -- Guido


More information about the git-buildpackage mailing list