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

Re: [StGIT PATCH 3/4] Convert git_id() to the new id format

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Jul 13, 2008, 11:20 UTC
Message-ID
<b0943d9e0807130420v37e36f30sef8b7745fa55b688@mail.gmail.com>
In-Reply-To
<20080622154854.GC4468@diana.vm.bytemark.co.uk>
2008/6/22 Karl Hasselström <kha@treskal.com>:
Show 6 quoted lines
> On 2008-06-19 22:42:22 +0100, Catalin Marinas wrote:
>
>> The patch rewrites git_id() to use the new id format and coverts the
>> commands using this function. The git_id() will be removed once all
>> the commands are converted to the new infrastructure where
>> git_commit() will be used instead.
[...[
Show 6 quoted lines
>>      if not rev:
>> +        # backwards compatibility
>>          return None
>
> Could you expand this comment a bit? It's not enough of a clue for me.
> :-/

I removed it, the diff command used to pass None as rev2 if the user only passed one boundary of the range. I fixed diff and removed the above.

Show 5 quoted lines
>> -def git_commit(name, repository, branch = None):
>> +def git_commit(name, repository, branch_name = None):
>
> Very nice parameter rename here, now that we have Branch objects (and
> use a crappy language with no type system).

It has a type system but no compile-time checking (I'm more in favour of static typing but no time to rewrite stgit :-)).

Show 9 quoted lines
>> -        (refpatchname, refbranchname, refpatchid) = parse_rev(patchname)
>> -        if refpatchname and not refpatchid and \
>> -               (not refpatchid or refpatchid == 'top'):
>> -            # FIXME: should also support picking //top.old
>> +        refbranchname, refpatchname = parse_rev(patchname)
>> +        if refpatchname:
>
> The corresponding TODO comment now would be that pick should be able
> to pick patches from the past, from the stack log.
How would the syntax look like?
-- 
Catalin
Previous: Karl HasselströmNext: Karl Hasselström
Message 9 of 13 in “Proposed patches”
  1. 0/4 Proposed patchesCatalin Marinas, Jun 19, 2008
  2. 1/4 Allow e-mails to be sent with the Unix sendmail toolCatalin Marinas, Jun 19, 2008
  3. Karl HasselströmJun 22, 2008
  4. Catalin MarinasJun 29, 2008
  5. 2/4 Implement a new patch identification scheme and id commandCatalin Marinas, Jun 19, 2008
  6. Karl HasselströmJun 22, 2008
  7. 3/4 Convert git_id() to the new id formatCatalin Marinas, Jun 19, 2008
  8. Karl HasselströmJun 22, 2008
  9. Catalin MarinasJul 13, 2008
  10. Karl HasselströmJul 14, 2008
  11. 4/4 Remove the applied/unapplied commandsCatalin Marinas, Jun 19, 2008
  12. Karl HasselströmJun 22, 2008
  13. Catalin MarinasJul 13, 2008

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.