nack
authorJoey Hess <joeyh@joeyh.name>
Thu, 25 Jan 2024 17:10:45 +0000 (13:10 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 25 Jan 2024 17:10:45 +0000 (13:10 -0400)
doc/todo/worktree_overwrite_races.mdwn

index 815e438a7d8311ac70845c2d3a54f17924177d71..d11bb3c7e862cc8b1189e2980ce061f713179f6c 100644 (file)
@@ -32,3 +32,14 @@ place. It gets 3 appended to it. So the worktree file ends up containing
 `1,3`.
 
 So, perhaps there is really no good solution to this. --[[Joey]]
+
+> I suppose the balance of probabilities is that a worktree file being
+> overwritten in the current race window is fairly plausibly likely, 
+> while a file being repeatedly appended to in that way is very unlikely.
+> 
+> But the balance of ill effects is that in the current case you lose data
+> in a way that is easy to understand (and that git is also subject to),
+> and in the repeated append case, a file gets into a state it never ought
+> to possibly be in.
+> 
+> So I think it makes sense to abandon this idea. [[done]] --[[Joey]]