git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* discussion: an option to fail git fetch if a pulled branch tip is not  a fast forward of the existing remote tip?
@ 2010-01-13 11:54 Jon Seymour
  2010-01-13 12:59 ` Thomas Rast
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Seymour @ 2010-01-13 11:54 UTC (permalink / raw)
  To: Git Mailing List

I spent a little while this afternoon debugging an issue where an
upstream publisher had backtracked and published a branch tip which
was not a descendant of a previously published (and fetched) branch
tip. The net result was that the backtracked changes were preserved in
the downstream branch once the 2nd tip was pulled.

Now clearly the upstream developer should not have backtracked. That
said, it would have been nice if I could have easily configured my
porcelain to detect the backtracking condition. An option on git fetch
that implemented something similar to the git push check would have
made this easy to achieve.

Has any consideration been given to such an option? Is there a
well-known alternative pattern for detecting this case?

jon.

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

end of thread, other threads:[~2010-01-13 20:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-13 11:54 discussion: an option to fail git fetch if a pulled branch tip is not a fast forward of the existing remote tip? Jon Seymour
2010-01-13 12:59 ` Thomas Rast
2010-01-13 17:14   ` Jon Seymour

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