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

Re: [StGIT PATCH] Implement a new patch identification scheme and id command

From
CMCatalin Marinas <catalin.marinas@gmail.com>
Date
Jun 16, 2008, 13:30 UTC
Message-ID
<b0943d9e0806160630m12f5bc7x39053e6c81d983c0@mail.gmail.com>
In-Reply-To
<b0943d9e0806160300q55dde16fg90de0fa12e3d5dc0@mail.gmail.com>
2008/6/16 Catalin Marinas <catalin.marinas@gmail.com>:
Show 10 quoted lines
> 2008/6/14 Karl Hasselström <kha@treskal.com>:
>> On 2008-06-14 08:28:33 +0100, Catalin Marinas wrote:
>> You don't remove the old parse_rev() and git_id(), and particularly
>> the latter has a lot of callers. Meaning that the rest of StGit still
>> speaks the old syntax.
>
> I thought about removing them when we convert the commands to the new
> infrastructure. In the meantime, I can rewrite git_id to use
> git_commit directly. The parse_rev is only used by the 'pick' command
> (and git_id). I'll have a look at these functions.

Done that - git_id/parse_rev now use the new id mechanism. Eventually we'll drop git_id once all the commands are converted.

Show 11 quoted lines
>>> -directory = DirectoryHasRepository()
>>> +directory = common.DirectoryHasRepositoryLib()
>>>  options = [make_option('-b', '--branch',
>>>                         help = 'use BRANCH instead of the default one')]
>>
>> Couldn't we kill this option? (And in the process, the branch argument
>> to git_sha1.)
>
> No problem with the option but I would like to keep the branch
> argument to git_sha1. There might be cases where it is used like
> picking multiple patches and I only specify one -B option to 'pick'.
What about supporting patch ranges with the new id format, something like:
  branch:patch1..patch2,patch3
or
  branch:patch1..patch2 branch:patch3
The following can be valid as well but patch3 may be on a different branch:
  branch:patch1..patch2 patch3
This way we could get rid of many --branch options.
-- 
Catalin
Previous: Catalin MarinasNext: Karl Hasselström
Message 5 of 6 in “Implement a new patch identification scheme and id command”
  1. Implement a new patch identification scheme and id commandCatalin Marinas, Jun 14, 2008
  2. Catalin MarinasJun 14, 2008
  3. Karl HasselströmJun 14, 2008
  4. Catalin MarinasJun 16, 2008
  5. Catalin MarinasJun 16, 2008
  6. Karl HasselströmJun 16, 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.