diff options
Diffstat (limited to 'meta/recipes-devtools/guilt/files/optional_head_check.patch')
-rw-r--r-- | meta/recipes-devtools/guilt/files/optional_head_check.patch | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/meta/recipes-devtools/guilt/files/optional_head_check.patch b/meta/recipes-devtools/guilt/files/optional_head_check.patch deleted file mode 100644 index 01e1d026f1..0000000000 --- a/meta/recipes-devtools/guilt/files/optional_head_check.patch +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | guilt: allow guilt-push to opt out of head checking | ||
2 | |||
3 | Depending on the method used to construct a tree, it is entirely | ||
4 | possible that branches are not only made up of guilt created commits. | ||
5 | This mixed mode is valid, and in particular is valid when applying | ||
6 | patches to a tree. | ||
7 | |||
8 | In the default mode of operation, you will see a warning such as | ||
9 | this when working on a branch: | ||
10 | |||
11 | Expected HEAD commit dbd5861f81a92b8b329561f94b8575c7ee6768b6 | ||
12 | got 3e8e6f6bd9f1772b91fc1fe9949f541d0560b487 | ||
13 | |||
14 | This looks severe, but is harmless during tree construction, | ||
15 | since even if the HEAD commit was expected, you can still run into | ||
16 | issues pushing a patch. This is particularly seen when templates are | ||
17 | adding patches to a kernel. | ||
18 | |||
19 | To make this look less ominous, we make the head check for patch | ||
20 | pushing opt-in. Which means that by default, you'll no longer see | ||
21 | this warning if you work with a mixed mode branch during tree | ||
22 | construction. | ||
23 | |||
24 | Other modes such as pop or refresh can run into problems when | ||
25 | the HEAD commit isn't tracked or expected, so they should remained | ||
26 | checked. | ||
27 | |||
28 | Upstream-Status: Inappropriate [oe-specific] | ||
29 | |||
30 | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> | ||
31 | |||
32 | --- | ||
33 | guilt | 3 +++ | ||
34 | guilt-push | 3 +++ | ||
35 | 2 files changed, 6 insertions(+) | ||
36 | |||
37 | --- a/guilt | ||
38 | +++ b/guilt | ||
39 | @@ -417,6 +417,9 @@ head_check() | ||
40 | return 0 ;; | ||
41 | esac | ||
42 | |||
43 | + # If do_head_check isn't set, bail, we are "opt-in" | ||
44 | + [ -z "$do_head_check" ] && return 0 | ||
45 | + | ||
46 | if [ "`git rev-parse refs/heads/$branch`" != "`git rev-parse $1`" ]; then | ||
47 | disp "Expected HEAD commit $1" >&2 | ||
48 | disp " got `git rev-parse refs/heads/$branch`" >&2 | ||
49 | --- a/guilt-push | ||
50 | +++ b/guilt-push | ||
51 | @@ -23,6 +23,9 @@ while [ $# -gt 0 ]; do | ||
52 | tag=$2 | ||
53 | shift | ||
54 | ;; | ||
55 | + --head_check) | ||
56 | + do_head_check=t | ||
57 | + ;; | ||
58 | *) | ||
59 | break | ||
60 | ;; | ||