git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Remote operations synchronization, and hooks
@ 2010-03-02  5:09 Eli Barzilay
  2010-03-02 23:43 ` Ilari Liusvaara
  0 siblings, 1 reply; 2+ messages in thread
From: Eli Barzilay @ 2010-03-02  5:09 UTC (permalink / raw)
  To: git

Is there any kind of synchronization with remote operations?  That is,
can there be any race conditions if multiple clients connect?  I'm
assuming that such operations are safe, but I couldn't find a place
with a concrete description.

More specifically, I'm wondering about writing hooks (specifically, a
`post-receive' hook), and it would make things convenient if I knew
that it was called synchronously.

And a related question: is there somewhere a summary of how the hooks
are called for each operation?  The githooks man page specifies some
of the relationships but a list with how each operation perform its
work would be much more convenient to read through.  For example, if a
remote update had a list of operations with "grab lock" in the
beginning and a "release lock" after running the `post-receive' hook,
then I wouldn't have the above question.  Also, it's unclear how
`post-update' is related to `post-receive' -- there's one comment in
the man entry for the former that makes it sound like it is supersedes
by the latter, but there's nothing explicit about it.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-02 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-02  5:09 Remote operations synchronization, and hooks Eli Barzilay
2010-03-02 23:43 ` Ilari Liusvaara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).