git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mark and protect local commits?
@ 2012-01-09  8:29 norbert.nemec
  2012-01-09  9:55 ` Michael Haggerty
  0 siblings, 1 reply; 2+ messages in thread
From: norbert.nemec @ 2012-01-09  8:29 UTC (permalink / raw)
  To: git

Hi there,

I have often wished that there were ways to

a) protect certain commits from leaving the local repository

b) mark commits that have already left the local repository


To be more specific:

a) Sometimes, I try out certain experimental features and want to make 
sure they don't accidentally end up out in the wild. If there were a 
flag to explicitly mark them "private", any non-local operation (push, 
pull, etc) on these commits could create an error message.

b) For history-rewriting operations, it is important to know which 
commits are out in the wild and which are not. In a "push"-setup working 
copy, git should be able to keep track of this. Any newly created commit 
would be marked as "unpublished" and the mark would be removed when the 
commit is pushed. Any history-rewriting would be prevented on published 
commits.


Has anyone else thought along these lines?

Greetings,
Norbert

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

end of thread, other threads:[~2012-01-09  9:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09  8:29 Mark and protect local commits? norbert.nemec
2012-01-09  9:55 ` Michael Haggerty

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