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

Re: [PATCH (topgit)] tg-patch: add support for generating patches against worktree and index

From
Kirill Smelkov <kirr@landau.phys.spbu.ru>
Date
Jan 8, 2009, 20:16 UTC
Message-ID
<20090108201614.GA4185@roro3>
In-Reply-To
<20090108195356.GA14644@lapse.rw.madduck.net>
On Fri, Jan 09, 2009 at 08:53:56AM +1300, martin f krafft wrote:
Show 13 quoted lines
> also sprach Kirill Smelkov <kirr@landau.phys.spbu.ru> [2009.01.09.0722 +1300]:
> > This implements `tg patch -i` and `tg patch -w` to see current
> > patch as generated against not-yet-committed index and worktree.
> 
> I think at this early stage, it would make sense to use long options
> and not reserve short options yet. Unless Petr disagrees, I'd kindly
> ask you to use long options instead. Once TopGit has been around for
> a while, we can provide short options for the most important long
> options.
> 
> This is possibly too conservative, but I've been bitten by lack of
> new letters before because I've used them all up for options that
> later turned out not to be needed.

I agree, but when I found myself needing something like `tg patch --index`, I've spot this in README:

    --- a/README
    +++ b/README
    @@ -284,8 +284,9 @@ tg patch
            tg patch will be able to automatically send the patches by mail
            or save them to files. (TODO)
    
    -       TODO: tg patch -i to base at index instead of branch,
    -               -w for working tree
So I concluded -i/-w was planned from the beginning.

I myself would call these options --index and --work or something like that, but I'll be ok with any option.

Thanks, Kirill

Previous: martin f krafftNext: Kirill Smelkov
Message 3 of 10 in “tg-patch: add support for generating patches against worktree and index”
  1. tg-patch: add support for generating patches against worktree and indexKirill Smelkov, Jan 8, 2009
  2. martin f krafftJan 8, 2009
  3. Kirill SmelkovJan 8, 2009
  4. Kirill SmelkovJan 8, 2009
  5. Kirill SmelkovJan 18, 2009
  6. martin f krafftJan 20, 2009
  7. Kirill SmelkovJan 20, 2009
  8. martin f krafftJan 21, 2009
  9. Kirill SmelkovJan 21, 2009
  10. martin f krafftJan 22, 2009

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.