chiark / gitweb /
tg-patch: add support for generating patches against worktree and index
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Wed, 21 Jan 2009 20:18:42 +0000 (23:18 +0300)
committermartin f. krafft <madduck@debian.org>
Fri, 23 Jan 2009 04:59:36 +0000 (15:59 +1100)
commitd400bb3263ab1239cc219541bb4364135b1b753e
treea0d9c7c835180652c8122646d3221bfe620705c6
parentecea02402fc81f4e040e9d2108d161894a8ef5c1
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>
README
contrib/tg-completion.bash
tg-patch.sh
tg.sh