]> git.99rst.org Git - git.git/commit
archive-tar: factor out write_block()
authorRené Scharfe <redacted>
Wed, 15 Jun 2022 17:01:14 +0000 (19:01 +0200)
committerJunio C Hamano <redacted>
Wed, 15 Jun 2022 20:19:47 +0000 (13:19 -0700)
commitdfce1186c6034d6f4ea283f5178fd25cbd8f4fc0
tree08043aaec98a9873740f1115bc35e7dced8131c8
parent96b9e5151bf0cad110d2f0bf16f413b9fc9f606c
archive-tar: factor out write_block()

All tar archive writes have the same size and are done to the same file
descriptor.  Move them to a common function, write_block(), to reduce
code duplication and make it easy to change the destination.

Original-patch-by: Rohit Ashiwal <redacted>
Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
archive-tar.c
git clone https://git.99rst.org/PROJECT