On Tue, 26 Feb 2013 22:25:58 -0500
wor...@alum.mit.edu (Dale R. Worley) wrote:

> Is Git properly interlocked for multi-user use?
> By that I mean, if two processes on one computer simultaneously
> execute Git commands on the same directory, does Git ensure that the
> repository is not damaged, and the commands act reasonably (which
> might be simply failing)?

Depends on what you call "the same directory".
Git commands also fall into different categories depending on what they

Git protectes certain (all? most? -- I don't really know) accesses to
its *repository* ensuring that concurrent accesses to the repository
are properly serialized.  If this wasn't true, pushing to and pulling
from remote repositories would fail miserably.

On the other hand, *the work tree* -- the area where the checkout is
kept and from which you `git add` modifications etc -- is not protected
in any way because it's not really under the Git's control.

What remains, are commands manipulating the index.
I do not really know if Git ensures concurrent commands manipulating
its contents are serialized or not.  I'd study the source code or ask
the devs on the main Git list.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to