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

Re: Locking binary files

From
MPMario Pareja <mpareja.dev@gmail.com>
Date
Sep 23, 2008, 06:39 UTC
Message-ID
<94c1db200809222339t7d65081eq7471fef86fb5ec73@mail.gmail.com>
In-Reply-To
<94c1db200809222333q4953a6b9g8ce0c1cd4b8f5eb4@mail.gmail.com>
Hi,

For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year, I have yet to see developments on this issue. I understand that locking files goes against the fundamental principles of distributed source control, but I think we need to come up with some workarounds. For Linux kernel development this is may not be an issue; however, for application development this is a major issue. How else can one developer be sure that time spent editing a binary file will not be wasted because another developer submitted a change?

To achieve the effects of locking, a "central" repository must be identified. Regardless of the distributed nature of git, most _companies_ will have a "central" repository for a software project. We should be able to mark a file as requiring a lock from the governing git repository at a specified address. Is this made difficult because git tracks file contents not files?

In any case, I think this is a crucial issue that needs to be addressed if git is going to be adopted by companies with binary file conflict potential. I don't see how a web development company can take advantage of git to track source code and image file changes. Any advice would be great!

Regards,
Mario
Next: Andreas Ericsson
Message 1 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.