git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jon Seymour <jon.seymour@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: Is there an agreed protocol for git repo locking?
Date: Sun, 10 May 2009 23:58:02 +1000	[thread overview]
Message-ID: <2cfc40320905100658i4d7ef065qe01e35f2929dd2f6@mail.gmail.com> (raw)

As I understand it, the normal use case for git is one in which a
single user performs a number of git operations in sequence on a
private repo.

As such, locking issues don't normally arise - the user is only doing
one thing at once.

I am working on an idea which will imply the need for concurrently
executing processes to modify the repo, in particular refs.  I
specifically don't want to have a repo for each process precisely
because I don't want to incur the costs of repo creation for every
process and, in any case, I need them to share the refs.

In my use case, I may need locks that span several otherwise atomic
operations - therefore relying on atomic locks that each git tool
might employ for safety is not sufficient.

Is there an agreed upon locking protocol for the git repo? Is there
tool support for this locking?

The case for adding it is that locking protocols only work if everyone
agrees on the same protocol. The easiest way to do this would be to
provide tools that enforce the desired locking protocol.

jon.

             reply	other threads:[~2009-05-10 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-10 13:58 Jon Seymour [this message]
2009-05-10 15:17 ` Is there an agreed protocol for git repo locking? Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2cfc40320905100658i4d7ef065qe01e35f2929dd2f6@mail.gmail.com \
    --to=jon.seymour@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).