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

Re: SCSI trees, merges and git status

From
JBJames Bottomley <james.bottomley@steeleye.com>
Date
Apr 19, 2005, 00:16 UTC
Message-ID
<1113869817.4998.106.camel@mulgrave>
In-Reply-To
<1113869456.3579.12.camel@localhost.localdomain>
On Tue, 2005-04-19 at 10:10 +1000, David Woodhouse wrote:
Show 7 quoted lines
> On Mon, 2005-04-18 at 17:03 -0700, Linus Torvalds wrote:
> > Git does work like BK in the way that you cannot remove history when you
> > have distributed it. Once it's there, it's there.
> 
> But older history can be pruned, and there's really no reason why an
> http-based 'git pull' couldn't simply refrain from fetching commits
> older than a certain threshold.
Yes, that's what I did to get back to the commit just before the merge:

fsck-cache --unreachable 54ff646c589dcc35182d01c5b557806759301aa3|awk '/^unreachable /{print $2}'|sed 's:^\(..\):.git/objects/\1/:'|xargs rm

removes all the objects from the tree prior to the bogus commit---it's based on your (Linus') git-prune-script.

James
Previous: David WoodhouseNext: David Woodhouse
Message 6 of 13 in “SCSI trees, merges and git status”
  1. James BottomleyApr 18, 2005
  2. Linus TorvaldsApr 18, 2005
  3. James BottomleyApr 18, 2005
  4. Linus TorvaldsApr 19, 2005
  5. David WoodhouseApr 19, 2005
  6. James BottomleyApr 19, 2005
  7. David WoodhouseApr 19, 2005
  8. James BottomleyApr 19, 2005
  9. Linus TorvaldsApr 19, 2005
  10. James BottomleyApr 19, 2005
  11. Linus TorvaldsApr 19, 2005
  12. Junio C HamanoApr 18, 2005
  13. Petr BaudisApr 18, 2005

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.