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
Dmitry Potapov <dpotapov@gmail.com>
Date
Apr 16, 2008, 16:23 UTC
Message-ID
<20080416162338.GD3133@dpotapov.dyndns.org>
In-Reply-To
<20080416145900.GA10777@machine.or.cz>
On Wed, Apr 16, 2008 at 04:59:00PM +0200, Petr Baudis wrote:
Show 5 quoted lines
> 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

I agree that they can be very useful in the process of migrating, but I would not recommend to leave them _after_ the migration process is complete.

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

They are used to replace _BAD_ commits imported from CVS. History in CVS can be very strange and even with best conversation tools, you may end up with something not exactly what you want. So, you want to replace some commits with corrected versions of them. So, you add those commits to Git repo, "fix" history, and then using gitk check that now you have exactly what you want. If now the history is okay then you can use git filter-branch to make those changes real.

Dmitry
Previous: Petr BaudisNext: Johannes Sixt
Message 4 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.