Skip to content

v1.4.0

Compare
Choose a tag to compare
@github-actions github-actions released this 23 May 14:02
· 143 commits to master since this release
aa0cd90

Tar v1.4.0

Diff since v1.3.1

This release adds two new API functions:

  • rewrite allows a tarball to be rewritten to the standard form that create produces without needing to fully extract and re-create the tarball. If the input stream is seekable, it makes one pass to index the tarball and uses seek to access file data in the correct order. If the input stream is not seekable, it will collect all the data in a buffer first and then use that.
  • tree_hash compute the git tree hash (SHA1 and SHA256 supported) of a tarball without needing to extract it to disk. This is particularly useful since some file systems lack features that are significant to git when hashing a file tree (e.g. symlinks, case preservation, ability to set/get executable bits).

This also includes significant refactoring of the internal {read,write}_tarball functions. This refactoring allows read_tarball to by extract, rewrite and tree_hash while write_tarball is used by create and rewrite. In the future these internal functions may be promoted to official low-level APIs.

Closed issues:

  • add rewrite function (#18)
  • add tree_hash function (#19)

Merged pull requests: