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

Re: [PATCH] [BUG] Add a test to check git-prune does not throw away revs hidden by a graft.

From
Junio C Hamano <junkio@cox.net>
Date
May 18, 2006, 22:36 UTC
Message-ID
<7vzmhfm03s.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20060518222045.GB6535@nowhere.earth>
Yann Dirson <ydirson@altern.org> writes:
> I'm not sure I understand what you're saying.
Please don't; I was asleep when I typed it -- sorry.

I was hoping fsck was doing the right thing for a very low level tool -- verify commit objects itself, without relying on the object parser machinery which does funky things like grafts.

Apparently it doesn't -- which is mostly good. You can safely remove commits you wanted to discard by grafting it away like your test did, and you can keep unrelated history you grafted to the back of your real root commit.

For the "clone without propagating grafts" issue, I think we need to have a way to communicate grafts across repositories. As you say, grafts is a local policy issue, but when you start cloning you _are_ sharing that local policy across repositories. Futzing fsck to honor and ignore grafts at the same time sounds like a band-aid to me.

Previous: Yann DirsonNext: Yann Dirson
Message 7 of 16 in “[BUG] Add a test to check git-prune does not throw away revs hidden by a graft.”
  1. [BUG] Add a test to check git-prune does not throw away revs hidden by a graft.Yann Dirson, May 18, 2006
  2. Linus TorvaldsMay 18, 2006
  3. Junio C HamanoMay 18, 2006
  4. Linus TorvaldsMay 18, 2006
  5. Junio C HamanoMay 18, 2006
  6. Yann DirsonMay 18, 2006
  7. Junio C HamanoMay 18, 2006
  8. Yann DirsonMay 18, 2006
  9. Junio C HamanoMay 18, 2006
  10. Yann DirsonMay 19, 2006
  11. Jakub NarebskiMay 19, 2006
  12. Linus TorvaldsMay 19, 2006
  13. Yann DirsonMay 19, 2006
  14. Linus TorvaldsMay 19, 2006
  15. Junio C HamanoMay 19, 2006
  16. David LangMay 19, 2006

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.