git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Tagging  a branch as "not fitted for branching" ?
@ 2014-04-28 12:09 Jean-Noël Avila
  2014-04-28 23:34 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jean-Noël Avila @ 2014-04-28 12:09 UTC (permalink / raw)
  To: git

Most manuals on git state that it is bad practice to push -f a branch 
after have meddled with its history, because this would risk to upset 
the repositories of the coworkers. On the other hand, some workflows use 
branches to propose modifications, and need some rewritting of the 
history after some review steps. In this case, the branch should only be 
seen as a mere pile of patches. Having this two-sided discourse is often 
misunderstood by casual git users.

The proposed solution would be to be able to flag the branches with a 
special tag "not fitted for branching" that a collaborator could use 
when pushing it. This tag would be passed on to any pulled remote. When 
another collaborator would then issue a "git checkout -b", the command 
would fail with a warning message, unless forced with '-f'.

Is this feature already present? If not, would it be of any interest?

Best regards,

Jean-Noël AVILA

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

end of thread, other threads:[~2014-04-29 17:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-28 12:09 Tagging a branch as "not fitted for branching" ? Jean-Noël Avila
2014-04-28 23:34 ` Junio C Hamano
2014-04-29  7:37   ` Jean-Noël Avila
2014-04-29 17:43     ` Junio C Hamano

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