git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* changing history once public
@ 2008-05-30 21:24 John J. Franey
  2008-05-30 21:37 ` Jon Loeliger
  0 siblings, 1 reply; 2+ messages in thread
From: John J. Franey @ 2008-05-30 21:24 UTC (permalink / raw)
  To: git

I think I understand the issue with changing history on branches that
have been made public.

What is the negative of publishing a branch and not being able to apply
history changing commands?

If I want to keep this branch current (in public), I would pull from the
tracking branch resolve conflicts and push to my public repo.  This
action leaves my commit as the parent of another commit; it is not
longer at HEAD.  Does it matter if my commit is no longer HEAD of my
branch?

I think the downside of not keeping my branch current is that I'd be
handing off to my colleagues the task of resolving merge conflicts.  Is
that right?

Thanks,
John

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

* Re: changing history once public
  2008-05-30 21:24 changing history once public John J. Franey
@ 2008-05-30 21:37 ` Jon Loeliger
  0 siblings, 0 replies; 2+ messages in thread
From: Jon Loeliger @ 2008-05-30 21:37 UTC (permalink / raw)
  To: John J. Franey; +Cc: git

John J. Franey wrote:
> I think I understand the issue with changing history on branches that
> have been made public.
> 
> What is the negative of publishing a branch and not being able to apply
> history changing commands?

If there is something in that history you want to "remove",
it must be done as an inverse patch, or an additional "removal"
patch.  You can't just change the history by backing it up and
writing it differently.

> If I want to keep this branch current (in public), I would pull from the
> tracking branch resolve conflicts and push to my public repo. 

Right.

> This
> action leaves my commit as the parent of another commit; it is not
> longer at HEAD.  Does it matter if my commit is no longer HEAD of my
> branch?

Uh, by definition HEAD is the current-most commit on your
active branch, right?

HTH,
jdl

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

end of thread, other threads:[~2008-05-30 21:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-30 21:24 changing history once public John J. Franey
2008-05-30 21:37 ` Jon Loeliger

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