Update working tree files fully atomically
authorJoey Hess <joey@kitenet.net>
Tue, 2 Apr 2013 17:13:42 +0000 (13:13 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 2 Apr 2013 19:02:00 +0000 (15:02 -0400)
commit38d61f934d6a714323f261d0b5d86fd069c92acb
tree624376ecc72a28c07e4ccf31353ee2d55ca741f2
parent8c52b20cc7afbf729e403edad09acf58f9c6adf8
Update working tree files fully atomically

This avoids commit churn by the assistant when eg,
replacing a file with a symlink.

But, just as importantly, it prevents the working tree being left with a
deleted file if git-annex, or perhaps the whole system, crashes at the
wrong time.

(It also probably avoids confusing displays in file managers.)
Annex/Content.hs
Annex/Direct.hs
Annex/Link.hs
Assistant/Threads/Watcher.hs
Backend.hs
Command/Add.hs
Locations.hs
debian/changelog