From 7a68b1978d3c4e1aba6636ac66112f4219f7d5af Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 8 Apr 2015 18:09:05 -0400 Subject: [PATCH] took another look at this --- doc/todo/smudge.mdwn | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/todo/smudge.mdwn b/doc/todo/smudge.mdwn index 6103ffa61e..b11b1dedc4 100644 --- a/doc/todo/smudge.mdwn +++ b/doc/todo/smudge.mdwn @@ -94,11 +94,20 @@ and it slows down *everything*, from `git status` to `git commit`. this. (Update: apparently can't be fixed.) +> Update: I tried this again (2015) and it seems that git status and git +> add avoid re-sending the file content to the clean filter, as long as the +> file stat has not changed. I'm not sure when git started doing that, +> but it seems to avoid this problem. +> --[[Joey]] + #### smudge The smudge script can also be provided a filename with %f, but it cannot directly write to the file or git gets unhappy. +> Still the case in 2015. Means an unnecesary read and pipe of the file +> even if the content is already locally available on disk. --[[Joey]] + ### dealing with partial content availability The smudge filter cannot be allowed to fail, that leaves the tree and