Am Fr., 18. Sept. 2020 um 22:18 Uhr schrieb Konstantin Ryabitsev <konstantin@xxxxxxxxxxxxxxxxxxx>: > On Fri, 18 Sep 2020 at 07:14, Andreas Grünbacher > <andreas.gruenbacher@xxxxxxxxx> wrote: > > > > Hi, > > > > I'm wondering if there's a way to apply a particular head in a bundle > > to a source tree, for example: > > > > $ git bundle create v5.9-rc1.bundle v5.8..v5.9-rc1 > > $ cd linux-5.8 > > $ git bundle APPLY ../5.9-rc1.bundle v5.9-rc1 > > I know this is not what you are asking, but since you used the kernel > as your example, you can use the following to achieve the result > you're looking for: > curl --header 'Accept-Encoding: gzip' -L > https://git.kernel.org/torvalds/p/v5.9-rc1/v5.8 | gunzip - | git apply Oh, that's neat. What I had in mind were actually distro packages: most projects nowadays live somewhere in git repositories. When they're packaged, this usually results in a source package with a diff on top of a baseline release, so the commit history is lost. Friendly packagers include the commit hashes and point users to a suitable git repository, but that's not enforced or consistent. Including the actual git history in packages would be much nicer (i.e., a git bundle), but if that can't replace the patch as well, it's rather unlikely to happen. Thanks, Andreas