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

Re: stgit 0.13 import mbox problems

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Aug 23, 2007, 20:48 UTC
Message-ID
<b0943d9e0708231348o28d870fem656330f89f248578@mail.gmail.com>
In-Reply-To
<20070823204202.GA10644@filer.fsl.cs.sunysb.edu>
On 23/08/07, Josef Sipek <jsipek@fsl.cs.sunysb.edu> wrote:
Show 15 quoted lines
> On Thu, Aug 23, 2007 at 09:36:05PM +0100, Catalin Marinas wrote:
> > On 23/08/07, Josef Sipek <jsipek@fsl.cs.sunysb.edu> wrote:
> > > Yep. Two different projects taking different approaches to storing the
> > > patches. I go with the plaintext diff approach ala quilt, while stgit uses
> > > git objects to store the data.
> >
> > But guilt also generates a commit object when pushing a patch. Or am I wrong?
>
> That's correct. But the git commit/tree/blob objects are a mere cache. For
> example, a refresh consists of:
>
> git-update-index ...
> git-diff HEAD^ > patchfile
> git-reset --hard HEAD^
> <internal push patch function - uses git-apply, git-{write,commit}-tree>

StGIT does a "git-diff | git-apply" during push as an optimisation. Guilt moved the diff to the 'refresh' command. It might be a good idea as the delay during 'push' is much more visible.

As I said in the past, the difference I see is that StGIT performs three-way merging if simple git-apply fails, with the possibility (configurable) of automatically starting a three-way merge tool like xxdiff or emacs. Guilt could probably be modified but this information needed for the three-way merge might be lost with text-only patches.

The rest is some extra functionality, StGIT being around for longer (actually I think two months younger than the first official GIT announcement).

-- 
Catalin
Previous: Josef SipekNext: Josef Sipek
Message 13 of 14 in “stgit 0.13 import mbox problems”
  1. Greg KHAug 23, 2007
  2. Catalin MarinasAug 23, 2007
  3. Catalin MarinasAug 23, 2007
  4. Greg KHAug 23, 2007
  5. J. Bruce FieldsAug 23, 2007
  6. Greg KHAug 23, 2007
  7. Catalin MarinasAug 23, 2007
  8. Josef SipekAug 23, 2007
  9. Greg KHAug 23, 2007
  10. Josef SipekAug 23, 2007
  11. Catalin MarinasAug 23, 2007
  12. Josef SipekAug 23, 2007
  13. Catalin MarinasAug 23, 2007
  14. Josef SipekAug 23, 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.