git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re: Re: fsck --full is Ok, but clones are not, "missing commits"?!

From
Petr Baudis <pasky@suse.cz>
Date
Apr 16, 2008, 14:59 UTC
Message-ID
<20080416145900.GA10777@machine.or.cz>
In-Reply-To
<20080416121424.GA3133@dpotapov.dyndns.org>
On Wed, Apr 16, 2008 at 04:14:24PM +0400, Dmitry Potapov wrote:
> info/grafts should never be used during normal work.

I don't really agree with this advice in general. Grafts can be very useful especially when migrating to Git - a very good strategy might be just to start from scratch with your current state, then import your previous history and graft it. The big advantage is that if you find out later that the import is screwed up, you can fix that and reimport. The fact that you don't need to haul 10 years of CVS history around unless you actually know you need it can be perceived as both advantage and disadvantage.

The _BAD_ grafts are those that replace list of commit's parents instead of just appending (typically to an empty one). I didn't actually have any idea people use grafts in such a twisted and perverse way... ;-)

-- 
				Petr "Pasky" Baudis
Whatever you can do, or dream you can, begin it.
Boldness has genius, power, and magic in it.	-- J. W. von Goethe
Previous: Dmitry PotapovNext: Dmitry Potapov
Message 3 of 10 in “Re: Re: Re: fsck --full is Ok, but clones are not, "missing commits"?!”
  1. Brian FosterApr 16, 2008
  2. Dmitry PotapovApr 16, 2008
  3. Petr BaudisApr 16, 2008
  4. Dmitry PotapovApr 16, 2008
  5. Johannes SixtApr 16, 2008
  6. Dmitry PotapovApr 16, 2008
  7. Johannes SixtApr 16, 2008
  8. Dmitry PotapovApr 16, 2008
  9. Jakub NarebskiApr 16, 2008
  10. Johannes SixtApr 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.