scripts: add patch-tags-from-git
authorBrandon Philips <brandon@ifup.org>
Wed, 9 Mar 2011 01:09:51 +0000 (17:09 -0800)
committerMichal Marek <mmarek@suse.cz>
Wed, 9 Mar 2011 21:40:29 +0000 (22:40 +0100)
commit243e88d9ae09f565c27162fa959ff0e432ae049c
treeb704cd422fdab724b0c7c8ad646368daa52b5d9d
parent5d6d37fc2d3c86a8724af9475b6161254f708906
scripts: add patch-tags-from-git

Add relevant headers for patches pulled from git

Adds a Git-commit: tag using the From header

Adds a Patch-mainline: tag if <kernel path> is given
a useful tree name can be provided in <kernel name>
otherwise basename <kernel path> will be used

example usage
-------------
$0 NULL-pointer-fix.patch
$0 NULL-pointer-fix.patch ~/kernel/linux-2.6
$0 NULL-pointer-fix.patch ~/kernel/linux-2.6 pci 2.6

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/patch-tags-from-git [new file with mode: 0755]