git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Locking binary files

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Sep 23, 2008, 21:54 UTC
Message-ID
<20080923215422.GV21650@dpotapov.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0809231551320.19665@iabervon.org>
On Tue, Sep 23, 2008 at 05:13:29PM -0400, Daniel Barkalow wrote:
Show 6 quoted lines
> 
> The lock needs to last until you push to the repository the lock is for; 
> otherwise you have the exclusive ability to make changes, but someone who 
> grabs the lock right after you release it will still be working on the 
> version without your change, which is what the lock is supposed to 
> prevent.

It still will happen if developers work on topic branches, and it is not a rate situation with Git. Thus locking some particular path is stupid. What you may want instead is too mark SHA-1 of this file as being edited and later maybe as being replaced with another one. In this case, anyone who has the access to the central information storage will get warning about attempt to edit a file that is edited or already replaced with a new version.

Dmitry
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 14 of 19 in “Re: Locking binary files”
  1. Mario ParejaSep 23, 2008
  2. Andreas EricssonSep 23, 2008
  3. Boaz HarroshSep 23, 2008
  4. Boaz HarroshSep 23, 2008
  5. Mario ParejaSep 23, 2008
  6. Boaz HarroshSep 23, 2008
  7. Dmitry PotapovSep 23, 2008
  8. Andreas EricssonSep 23, 2008
  9. Mario ParejaSep 23, 2008
  10. Alex RiesenSep 23, 2008
  11. Daniel BarkalowSep 23, 2008
  12. Junio C HamanoSep 23, 2008
  13. Daniel BarkalowSep 23, 2008
  14. Dmitry PotapovSep 23, 2008
  15. Daniel BarkalowSep 23, 2008
  16. Dmitry PotapovSep 23, 2008
  17. Daniel BarkalowSep 24, 2008
  18. Dmitry PotapovSep 24, 2008
  19. Dmitry PotapovSep 23, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.