cat_file: take -i/-w parameters
commit9b25e8482c536324a6ecdefdf8abc1c0b1dca83e
authorBert Wesarg <bert.wesarg@googlemail.com>
Wed, 20 Oct 2010 20:17:47 +0000 (20 22:17 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 2 Nov 2010 21:00:41 +0000 (2 22:00 +0100)
tree5e47dd7f868acb34f0022c9b8ac9be2cf9830f13
parent52cbcb78ed100ce2d7ac28d98f6694a77a6a1235
cat_file: take -i/-w parameters

This changes the way how cat_file selects the source of the file. It
accepts an optional parameter which is either -i or -w and will react on this
instead of the branch name. tg-patch is updated accordingly and can now
accepts the current branch name as argument with -i or -w given.

cat_file was also broken for the worktree case when we are not in the top level.

Also, tg-patch allowed to be on the top-base branch, but -i and -w doesn't
make sense there too.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
hooks/pre-commit.sh
tg-patch.sh
tg.sh