#1071406 gnulib: dh_gnulib_patch: use git merge-base --is-ancestor

#1071406#5
Date:
2024-05-18 18:06:45 UTC
From:
To:
The current logic of dh_gnulib_patch to try each patch in a .d
sub-directory and pick one patch that applies.  It was suggested to use
a more clever method to pick the "right" patch.  One more clever
approach would be "git merge --is-ancestor" to programtically figure out
which patch to apply.

I'm opening a bug report so this idea is not forgotten, even if not
implemented now.

One concern with the --is-ancestor approach is that there is no
requirement to use gnulib from a git clone, and currently
dh_patch_gnulib works without that assumption.  This may not be an
important limitation though.

/Simon