From 9b544125e1e3d2cc2db8f5d20d6fd0746f8cef5d Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Thu, 30 Jul 2015 14:10:51 +0300 Subject: create-pull-request: Implement -d option This options allows to generate patches against relative directory by using git format-patch --relative option. See more details about --relative option in git diff manual page. For example generating bitbake patchsets from poky can be done this way: create-pull-request -u contrib -d ./bitbake Signed-off-by: Ed Bartosh Signed-off-by: Ross Burton --- scripts/create-pull-request | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'scripts/create-pull-request') diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 97ed874e7f..216edfd751 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -34,7 +34,7 @@ RFC=0 usage() { CMD=$(basename $0) cat < /dev/null - +git format-patch $extraopts -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --cover-letter $RELATIVE_TO..$COMMIT_ID > /dev/null # Customize the cover letter CL="$ODIR/0000-cover-letter.patch" -- cgit 1.2.3-korg