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

Re: [StGIT RFC PATCH] Don't use refs/bases/<branchname>

From
MCMarco Costalba <mcostalba@gmail.com>
Date
May 1, 2007, 19:59 UTC
Message-ID
<e5bfff550705011259w567a98dj6d0a68b0fbe90994@mail.gmail.com>
In-Reply-To
<20070501185615.GA32727@diana.vm.bytemark.co.uk>
On 5/1/07, Karl Hasselström <kha@treskal.com> wrote:
Show 23 quoted lines
> On 2007-05-01 11:10:47 +0200, Marco Costalba wrote:
>
> > The only StGit data read directly are patches sha's; qgit walks
> > recursively all the files called "top" under directory tree
> >
> >           <git dir>/patches/<current branch>
> >
> > to get sha list of each applied and unapplied patch in one go. This
> > is much faster then calling "stg id <patch name>" for all the
> > patches.
>
> Hmm. These are on my kill list too. :-)
>
> The patch tops are already recorded in
> refs/patches/<branch>/<patchname> to keep them from being garbage
> collected, so these top files are redundant. But it isn't _that_ bad,
> so if removing them would break qgit, I guess I could try to restrain
> myself. At least all the other metadata is fair game. :-)
>
> (But if I were you, I'd look for the patches under patches/refs
> anyway; they _have_ to be there to survive garbage collection, so no
> amount of stgit refactoring will break qgit.)
>
Well, I did. ;-)
Actually I pushed a patch few hours  ago to read patches sha under refs/patches.

The problem is that the patch (for now) is pushed only for the new development version of qgit, not the stable one and, worse, all the currently released versions will break if you remove <git dir>/patches/ directory.

So please, if possible deprecate <git dir>/patches/ directory but do not remove for a while, so to let users to upgrade gracefully.

Thanks Marco

Previous: Karl HasselströmNext: Karl Hasselström
Message 5 of 8 in “Don't use refs/bases/<branchname>”
  1. Don't use refs/bases/<branchname>Karl Hasselström, Apr 29, 2007
  2. Catalin MarinasMay 1, 2007
  3. Marco CostalbaMay 1, 2007
  4. Karl HasselströmMay 1, 2007
  5. Marco CostalbaMay 1, 2007
  6. Karl HasselströmMay 2, 2007
  7. Marco CostalbaMay 2, 2007
  8. Karl HasselströmMay 2, 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.