From 22af5b146740a1577fd9e69e0739b3fb27131d53 Mon Sep 17 00:00:00 2001 From: "xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60" Date: Mon, 7 Aug 2023 07:19:35 +0000 Subject: [PATCH] Added a comment --- ...nt_3_b1ce0b03cf9b20d9cf57d15fd6d05e3e._comment | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/forum/Git_filters__58___smudgeToFile_and_cleanFromFile/comment_3_b1ce0b03cf9b20d9cf57d15fd6d05e3e._comment diff --git a/doc/forum/Git_filters__58___smudgeToFile_and_cleanFromFile/comment_3_b1ce0b03cf9b20d9cf57d15fd6d05e3e._comment b/doc/forum/Git_filters__58___smudgeToFile_and_cleanFromFile/comment_3_b1ce0b03cf9b20d9cf57d15fd6d05e3e._comment new file mode 100644 index 0000000000..7aed3846e3 --- /dev/null +++ b/doc/forum/Git_filters__58___smudgeToFile_and_cleanFromFile/comment_3_b1ce0b03cf9b20d9cf57d15fd6d05e3e._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="xvorsx@a3fc1a0cf228782f624e5eb21ba8a664227b6c60" + nickname="xvorsx" + avatar="http://cdn.libravatar.org/avatar/f8a11fb3152e472307bde487d188b23a" + subject="comment 3" + date="2023-08-07T07:19:35Z" + content=""" +Thank you for the reference! + +I may try to use this trick, but I doubt it would be sufficient for me: + +> To avoid the problem, git-annex smudge --clean relies on a not very well documented trick: It is fed a possibly large file on stdin, but when it closes the FD without reading. git gets a SIGPIPE and stops reading and sending the file. Instead of reading from stdin, git-annex abuses the fact that git provides the clean filter with the work tree filename, and reads and cleans the file itself, more efficiently. + +I will keep you updated on the progress in this direction. +"""]]