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

Re: [PATCH 2/2] Look for a commit's parents in the standard way.

From
YDYann Dirson <dwitch@nan92-1-81-57-214-146.fbx.proxad.net>
Date
Sep 3, 2006, 19:36 UTC
Message-ID
<20060903193650.GA4914@nan92-1-81-57-214-146.fbx.proxad.net>
In-Reply-To
<b0943d9e0608200343t517ec29dw2b6b49d9d69dbad5@mail.gmail.com>
On Sun, Aug 20, 2006 at 11:43:22AM +0100, Catalin Marinas wrote:
Show 6 quoted lines
> On 14/08/06, Yann Dirson <ydirson@altern.org> wrote:
> >This has the direct effect of taking info/grafts into account, since
> >ignoring it only causes confusion.
> 
> I don't know the difference but is there any between parsing the
> commit file and using git-rev-list --parents?
Yes, git-rev-list at least takes info/grafts into account.
Show 7 quoted lines
> >+        self.__parents = split(_output_lines('git-rev-list --parents 
> >--max-count=1 %s' % id_hash)[0])[1:]
> 
> Instead of using the split() method, you could call
> _output_lines('git-rev-list --parents --max-count=1 %s' %
> id_hash)[0].split()[1:]. Maybe that's why they might deprecate the
> global split method.
Ah, OK.
Best regards,
-- 
Yann.

-- 
VGER BF report: U 0.500235
Previous: Junio C Hamano
Message 6 of 6 in “Series short description”
  1. 0/2 Series short descriptionYann Dirson, Aug 14, 2006
  2. 1/2 Add a --parent flag to "stgit pick".Yann Dirson, Aug 14, 2006
  3. 2/2 Look for a commit's parents in the standard way.Yann Dirson, Aug 14, 2006
  4. Catalin MarinasAug 20, 2006
  5. Junio C HamanoAug 22, 2006
  6. Yann DirsonSep 3, 2006

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.