Hi, On Mon, Jan 30, 2023 at 05:36:43PM +0100, Gioele Barabucci wrote: > Package: git-buildpackage > Version: 0.9.30 > > Dear maintainers of git-buildpackage, > > The patches exported by `gbp-pq` can be wildly different depending on the > value set in the git option `diff.algorithm`. > > Thus packages where co-maintainers happen to use different `diff.algorithm` > values undergo a lot of unneeded "diff churn", making it impossible to > follow the history of the Debian-specific patches. > > This issue can be fixed by forcing the use of a specific diff algorithm > inside `gbp-pq`, for example by using `--diff-algorithm=histogram` in > `gbp.git.Repository.diff`.
Yeah, that's kind of expected as no attempt is made to force options. One possibility would be to have `gbp clone` dump a set of options into `.git/config` when cloning the repo. Forcing this in a hardcoded way would disallow people to tweak these which can make sense depending on the project. > Another setting that can reduce diff churn and should be forced by `gbp-pq` > is `diff.rename`, that should be set to `copies`. Why's that? Cheers, -- Guido