File tree Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Expand file tree Collapse file tree 2 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ SYNOPSIS
10
10
--------
11
11
[verse]
12
12
'git quiltimport' [--dry-run | -n] [--author <author>] [--patches <dir>]
13
+ [--series <file>]
13
14
14
15
15
16
DESCRIPTION
@@ -42,13 +43,19 @@ OPTIONS
42
43
information can be found in the patch description.
43
44
44
45
--patches <dir>::
45
- The directory to find the quilt patches and the
46
- quilt series file.
46
+ The directory to find the quilt patches.
47
47
+
48
48
The default for the patch directory is patches
49
49
or the value of the $QUILT_PATCHES environment
50
50
variable.
51
51
52
+ --series <file>::
53
+ The quilt series file.
54
+ +
55
+ The default for the series file is <patches>/series
56
+ or the value of the $QUILT_SERIES environment
57
+ variable.
58
+
52
59
GIT
53
60
---
54
61
Part of the linkgit:git[1] suite
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ git quiltimport [options]
6
6
--
7
7
n,dry-run dry run
8
8
author= author name and email address for patches without any
9
- patches= path to the quilt series and patches
9
+ patches= path to the quilt patches
10
+ series= path to the quilt series file
10
11
"
11
12
SUBDIRECTORY_ON=Yes
12
13
. git-sh-setup
27
28
shift
28
29
QUILT_PATCHES=" $1 "
29
30
;;
31
+ --series)
32
+ shift
33
+ QUILT_SERIES=" $1 "
34
+ ;;
30
35
--)
31
36
shift
32
37
break ;;
@@ -53,6 +58,13 @@ if ! [ -d "$QUILT_PATCHES" ] ; then
53
58
exit 1
54
59
fi
55
60
61
+ # Quilt series file
62
+ : ${QUILT_SERIES:= $QUILT_PATCHES / series}
63
+ if ! [ -e " $QUILT_SERIES " ] ; then
64
+ echo " The \" $QUILT_SERIES \" file does not exist."
65
+ exit 1
66
+ fi
67
+
56
68
# Temporary directories
57
69
tmp_dir=" $GIT_DIR " /rebase-apply
58
70
tmp_msg=" $tmp_dir /msg"
135
147
commit=$( (echo " $SUBJECT " ; echo ; cat " $tmp_msg " ) | git commit-tree $tree -p $commit ) &&
136
148
git update-ref -m " quiltimport: $patch_name " HEAD $commit || exit 4
137
149
fi
138
- done 3< " $QUILT_PATCHES /series "
150
+ done 3< " $QUILT_SERIES "
139
151
rm -rf $tmp_dir || exit 5
You can’t perform that action at this time.
0 commit comments