git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Locking a branch
@ 2006-05-07  2:50 Pavel Roskin
  2006-05-08 10:45 ` Catalin Marinas
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Roskin @ 2006-05-07  2:50 UTC (permalink / raw)
  To: git

Hello!

I see there is an active discussion about branch attributes.  It would
be nice to have an attribute to prevent git from changing the branch
head in any way.  The reason is that it interferes with StGIT on StGIT
managed branches.  If StGIT is fine with the change, it would remove or
override the lock temporarily.  StGIT could also unlock the branch
permanently if there are no applied patches.

Another use of the branch lock would be to prevent damage to remote
branches, such as "origin".  Committing anything to "origin" would break
fetching.  In this case, git-fetch should be allowed to override the
lock after checking .git/remotes, but other git commands should respect
the lock.

It should be possible to break locks, but the users would at least think
before doing so.

-- 
Regards,
Pavel Roskin

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-08 10:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-07  2:50 Locking a branch Pavel Roskin
2006-05-08 10:45 ` Catalin Marinas

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).