Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Another option would be to use <a href="http://www.kernel.org/pub/software/scm/git/docs/git-archive.html" rel="nofollow noreferrer"><code>git archive</code></a>.</p> <p>Of course, as mentioned by Joey in his "<a href="http://kitenet.net/~joey/blog/entry/git_archive_as_distro_package_format/" rel="nofollow noreferrer"><code>git archive</code> as distro package format</a>":</p> <blockquote> <p>The tricky part of using a git (or other rcs) archive as distribution source package format is handling pristine upstream tarballs.</p> <ul> <li><p>One approach would be to try to create a git archive that didn't include objects present in the upstream tarball. Then, to unpack the source package, you'd unpack the upstream tarball, convert the files in it into git objects and add them into the .git directory.<br> This seems like it might be possible to implement, but you'd need to know quite a lot about git internals to remove the redundant objects from the git repo and regenerate them from the tarball.</p></li> <li><p>Another approach would be to <strong>keep the pristine upstream tarball in the git archive, and then the source package would consist entirely of the git archive</strong>. This doesn't have the same nice minimal bandwidth upload behavior -- unless you can "<code>git push</code>" your changes to do the upload</p></li> </ul> <p><strong>Storing a lot of upstream tarballs in git wouldn't be efficient</strong>, but the script <strong><a href="http://git.kitenet.net/?p=pristine-tar.git;a=summary" rel="nofollow noreferrer">pristine-tar</a></strong> takes care of that:</p> <p>pristine-tar can regenerate a pristine upstream tarball using only a small binary delta file and a copy of the source which can be a revision control checkout.<br> The package also includes a pristine-gz command, which can regenerate a pristine .gz file.<br> The delta file is designed to be checked into revision control along-side the source code, thus allowing the original tarball to be extracted from revision control.</p> </blockquote> <p>More details in the <a href="http://git.kitenet.net/?p=pristine-tar.git;a=blob;f=pristine-tar;h=e7cd0f75fb2503eb9b564fc07eeab9f23ed436c8;hb=9d57a88c0825a0098a89a7f7f1af31b58a836bf3" rel="nofollow noreferrer">header of this perl script pristine-tar</a>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload