git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* detecting cycles in Git's commit graph
@ 2009-04-30 19:18 Michael Hendricks
  2009-04-30 19:27 ` Shawn O. Pearce
  2009-05-03 11:36 ` Stephen R. van den Berg
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Hendricks @ 2009-04-30 19:18 UTC (permalink / raw)
  To: git

Are there any tools for detecting cycles in the commit graph which
have been caused by grafts?  I thought 'git fsck' might do it, but it
doesn't seem to.

While importing some historic code into a new Git repository, my
import scripts accidentally created a cycle in the commit graph by
using grafts.  Essentially, I had commits like:

    A -- B -- C

I accidentally created a graft marking commit C as commit B's second
parent.  There were 15,000 grafts so it took me a while to track down
the one causing the cycle.  The initial symptom was that 'git log
--graph B' produced no output.

I wasn't able to find any existing tools to locate these kinds of
faulty grafts.

Thanks for any pointers.

-- 
Michael

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

end of thread, other threads:[~2009-05-03 11:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-30 19:18 detecting cycles in Git's commit graph Michael Hendricks
2009-04-30 19:27 ` Shawn O. Pearce
2009-05-03 11:36 ` Stephen R. van den Berg

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