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 18, 2009, 15:06 UTC
Message-ID
<20090118150637.GC27522@roro3.zxlink>
In-Reply-To
<20090108211149.GA19983@roro3>
On Fri, Jan 09, 2009 at 12:11:49AM +0300, Kirill Smelkov wrote:
Show 38 quoted lines
> I'm sorry, but I've found a mistake in my code for case:
> 
> diff --git a/tg-patch.sh b/tg-patch.sh
> index db1ad09..d701c54 100644
> --- a/tg-patch.sh
> +++ b/tg-patch.sh
> @@ -17,8 +17,8 @@ while [ -n "$1" ]; do
>         case "$arg" in
>         -i)
>                 topic='(i)'
> -               diff_opts="$diff_opts --cached";;
> -               diff_committed_only=;
> +               diff_opts="$diff_opts --cached";
> +               diff_committed_only=;;
>         -w)
>                 topic='(w)'
>                 diff_committed_only=;;
> 
> 
> So here is corrected patch:
> 
> 
> From: Kirill Smelkov <kirr@landau.phys.spbu.ru>
> To: Petr Baudis <pasky@suse.cz>
> Cc: martin f krafft <madduck@madduck.net>
> Cc: Git Mailing List <git@vger.kernel.org>
> Subject: [PATCH (topgit)] tg-patch: add support for generating patches against worktree and index
> 
> This implements `tg patch -i` and `tg patch -w` to see current patch as
> generated against not-yet-committed index and worktree.
> 
> 
> NOTE: unfortunately `git cat-file blob <file>` does not provide an option
> to cat file from worktree (only from an object or from index), so I had to
> unroll my own `cat file topic:file` with special support for '(i)' and
> '(w)' topics.
> 
> Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru>
[...]
Petr, Martin,
What's the state of this patch?

I don't understand why this gets ignored. Maybe I do something wrong? ...

Thanks, Kirill

Previous: Kirill SmelkovNext: martin f krafft
Message 5 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.