* Lock binairy files in Git
@ 2009-03-04 13:56 Henk
2009-03-04 14:15 ` Johannes Schindelin
2009-03-04 15:41 ` Michael Hendricks
0 siblings, 2 replies; 3+ messages in thread
From: Henk @ 2009-03-04 13:56 UTC (permalink / raw)
To: git
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.
Henk
--
View this message in context: http://n2.nabble.com/Lock-binairy-files-in-Git-tp2422894p2422894.html
Sent from the git mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Lock binairy files in Git
2009-03-04 13:56 Lock binairy files in Git Henk
@ 2009-03-04 14:15 ` Johannes Schindelin
2009-03-04 15:41 ` Michael Hendricks
1 sibling, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2009-03-04 14:15 UTC (permalink / raw)
To: Henk; +Cc: git
Hi,
On Wed, 4 Mar 2009, Henk wrote:
> 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.
No, you cannot. Git is distributed, and therefore what you want is
fundamentally impossible.
You can write hooks, however, enforcing "locks", and make your users
install them.
But due to the fundamental impossibility of the thing, you have to risk
that this scenario fails.
It might be better to come up with a non-tool solution to the problem,
i.e. appointing people responsible for a certain set of your binary files.
That is outside the purview of Git, though.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Lock binairy files in Git
2009-03-04 13:56 Lock binairy files in Git Henk
2009-03-04 14:15 ` Johannes Schindelin
@ 2009-03-04 15:41 ` Michael Hendricks
1 sibling, 0 replies; 3+ messages in thread
From: Michael Hendricks @ 2009-03-04 15:41 UTC (permalink / raw)
To: Henk; +Cc: git
On Wed, Mar 04, 2009 at 05:56:48AM -0800, Henk wrote:
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-04 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-04 13:56 Lock binairy files in Git Henk
2009-03-04 14:15 ` Johannes Schindelin
2009-03-04 15:41 ` Michael Hendricks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox