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

Re: Lock binairy files in Git

From
Michael Hendricks <michael@ndrix.org>
Date
Mar 4, 2009, 15:41 UTC
Message-ID
<20090304154140.GA44969@ginosko.grantstreet.com>
In-Reply-To
<1236175008046-2422894.post@n2.nabble.com>
On Wed, Mar 04, 2009 at 05:56:48AM -0800, Henk wrote:
Show 6 quoted lines
> In our current version control system we lock binairy files when we
> edit them. This way other developers know when a file is being
> edited. Is there something simular in Git? Or is there another
> method to let others now I am currently editing a file?
> 
> We need this only for binairy files, because they cannot be merged. 

You can't lock files, but perhaps you could specify a custom merge driver to define how those files should be "merged" (for whatever definition you choose). See

    http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
for details.
-- 
Michael
Previous: Johannes Schindelin
Message 3 of 3 in “Lock binairy files in Git”
  1. HenkMar 4, 2009
  2. Johannes SchindelinMar 4, 2009
  3. Michael HendricksMar 4, 2009

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.