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

Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'

From
Karl Hasselström <kha@treskal.com>
Date
Nov 27, 2007, 10:16 UTC
Message-ID
<20071127101614.GB26072@diana.vm.bytemark.co.uk>
In-Reply-To
<Pine.LNX.4.64.0711261647400.27959@racer.site>
On 2007-11-26 16:48:14 +0000, Johannes Schindelin wrote:
Show 17 quoted lines
> On Sun, 25 Nov 2007, Karl Hasselström wrote:
>
> > On 2007-11-23 15:59:58 -0500, Shawn O. Pearce wrote:
> >
> > > I have been considering creating a "git-gui daemon" process that
> > > links to libgit.a and can be driven bidirectionally through its
> > > stdin/stdout. Based on git-fast-export, sorta. But I haven't
> > > even started it...
> > >
> > > But the idea is sort of what Han-Wen wants. Why should I fork
> > > rev-parse to get a ref value? Or update-ref to change one?
> >
> > Obviously, something like this would be very valuable for StGit as
> > well.
>
> Could you be a little more specific _what_ you want to do, and _how_
> this could be done with fast-export | fast-import?

Currently, a single StGit command can result in quite a few invocations of git-cat-file, for example, each of which forks off a new process. If it could start just one daemon such as Shawn proposed, and feed it simple questions and commands about blobs, trees, commits, and refs, that would probably be quite a lot faster.

From what I understand, this is not something that would fit a fast-export | fast-import pipeline. Which is why I didn't take the time to elaborate on (or indeed find out) exactly which commands StGit would like such a daemon to support.

By the way: one command one _would_ likely want in the daemon is "list modified files". Being long-lived (not when driven by StGit, perhaps, but definitely when driven by git-gui or qgit), the daemon would be able to use inotify for that.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 17 of 27 in “Add 'git fast-export', the sister of 'git fast-import'”
  1. Add 'git fast-export', the sister of 'git fast-import'Johannes Schindelin, Nov 21, 2007
  2. Johannes SixtNov 21, 2007
  3. Shawn O. PearceNov 21, 2007
  4. Johannes SchindelinNov 21, 2007
  5. Andreas EricssonNov 21, 2007
  6. Johannes SchindelinNov 21, 2007
  7. Andreas EricssonNov 21, 2007
  8. Geert BoschNov 21, 2007
  9. Johannes SchindelinNov 21, 2007
  10. Han-Wen NienhuysNov 23, 2007
  11. Johannes SchindelinNov 23, 2007
  12. Han-Wen NienhuysNov 23, 2007
  13. Johannes SchindelinNov 23, 2007
  14. Shawn O. PearceNov 23, 2007
  15. Karl HasselströmNov 25, 2007
  16. Johannes SchindelinNov 26, 2007
  17. Karl HasselströmNov 27, 2007
  18. Johannes SchindelinNov 27, 2007
  19. Karl HasselströmNov 27, 2007
  20. Johannes SchindelinNov 27, 2007
  21. Johannes SchindelinNov 26, 2007
  22. Nguyen Thai Ngoc DuyNov 23, 2007
  23. Johannes SchindelinNov 23, 2007
  24. Shawn O. PearceNov 23, 2007
  25. Nguyen Thai Ngoc DuyNov 24, 2007
  26. Johannes SchindelinNov 27, 2007
  27. Nguyen Thai Ngoc DuyNov 27, 2007

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.