#463036 git-core: Handle files in working copy atomically

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Josh Triplett
Date:
2010-05-15 21:21:13 UTC
Severity:
wishlist
#463036#3
Date:
2008-01-29 00:57:24 UTC
From:
To:
Currently, Git manipulates the working copy in non-atomic ways.  For
instance, when checking out a different branch, Git will unlink files
in the working copy, and later use open and mmap to write them out.
I'd like some way to have Git handle files in the working copy
atomically, such as by writing them out to a temporary file and
atomically renaming them.  In particular, this would make it much
safer to use Git for things like /etc or $HOME.

- Josh Triplett