--strip option for tg export
commit4035016bb505479ad6197aed23a54f95c2400609
authorHeiko Hund <hhund@astaro.com>
Thu, 12 Nov 2009 10:15:08 +0000 (12 10:15 +0000)
committerRobin Green <greenrd@greenrd.org>
Sat, 9 Mar 2013 01:34:52 +0000 (9 01:34 +0000)
tree3387eeec29333215bc3ef5a0c554a009cc40e77b
parenta840e33e17bc173dd30cf8eac131b4570d50b8a1
--strip option for tg export

This introduces the '--strip[=N]' option for 'tg export --quilt' to enable
export of a flat quilt series, even if the tg branch names are structured
hierarchically.

It may be useful if you - like me - structure your topgit branches like
"t/<NN>/<NAME>" to keep the overview in git, but don't want the exported
quilt series to be spread across subdirectories.

In contrast to '--flatten' this option removes the first 'N' or all
subdirectories from the topgit branch name, while keeping compatible with
the existing options. The remaining ones can still be flattened. Patch
names can still get numbered.

Signed-off-by: Heiko Hund <hhund@astaro.com>
Signed-off-by: Robin Green <greenrd@greenrd.org>
README
tg-export.sh