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