]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(tar): Update tar.vim to support permissions
authorLennart00 <73488709+Lennart00@users.noreply.github.com>
Mon, 11 Nov 2024 21:39:30 +0000 (22:39 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 11 Nov 2024 21:39:30 +0000 (22:39 +0100)
commit129a8446d23cd9cb4445fcfea259cba5e0487d29
treea3daa85b2c435086f748d0e1dac99fefee6d52d3
parent4b9fa957125e33951a4a830414ccb70172976397
runtime(tar): Update tar.vim to support permissions

These changes enable tar.vim to keep permissions of files that were
edited intact instead of replacing them with the default permissions.

The major change for this is switching from "tar -OPxf", which reads out
the contents of the selected file from an tar archive to stdout to
"tar -pPxf" which extracts the selected file to the current directory
with permissions intact

This requirs the temporary directory to be created earlier.

closes: #7379

Signed-off-by: Lennart00 <73488709+Lennart00@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/tar.vim