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

Re: StGIT 0.13 recognizes but not list packed StGIT controlled branches

From
Jakub Narebski <jnareb@gmail.com>
Date
Nov 19, 2007, 11:57 UTC
Message-ID
<200711191257.09158.jnareb@gmail.com>
In-Reply-To
<b0943d9e0711190320r28224763t5a6c9ed7758a12b3@mail.gmail.com>
Catalin Marinas wrote:
Show 9 quoted lines
> On 18/11/2007, Jakub Narebski <jnareb@gmail.com> wrote:
>
> > I use Stacked GIT 0.13 with git 1.5.3.5 (and Python 2.4.3).
> > StGIT does recognize old StGIT branches (and converts them),
> > but "stg branch -l" list only one branch. I guess that is
> > cause by the fact that all the rest of branches are packed.
> 
> Have you tried the latest StGIT snapshot? We added support for this
> and it will be available in 0.14 (to be released pretty soon).
Would it work with Python 2.4.3? Yes, I know I should upgrade my
Linux distribution (I use now Aurox 11.1, which is based on Fedora
Core 4)...
 
Show 7 quoted lines
> > Another StGIT question: how to check if given branch is controlled
> > by StGIT (needed for my bash prompt)?
> 
> 'stg branch -l' lists the branches and marks those controlled by
> StGIT. For a simple test, just use a command which would fail on
> non-stgit branches (stg id base). Yet another way is to check for the
> presence of '.git/patches/<branch>'.

Thanks. 'stg id base' is quite a lot slower than 'test -e "$(git rev-parse --git-dir)/patches/$branch"', and it _does_ matter in prompt creating.

-- 
Jakub Narebski
Poland
Previous: Catalin MarinasNext: Catalin Marinas
Message 4 of 8 in “StGIT 0.13 recognizes but not list packed StGIT controlled branches”
  1. Jakub NarebskiNov 18, 2007
  2. Junio C HamanoNov 19, 2007
  3. Catalin MarinasNov 19, 2007
  4. Jakub NarebskiNov 19, 2007
  5. Catalin MarinasNov 19, 2007
  6. Jakub NarebskiNov 19, 2007
  7. Catalin MarinasNov 19, 2007
  8. Jakub NarebskiNov 19, 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.