summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/guilt/files/optional_head_check.patch
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2013-08-23 14:08:17 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-26 11:29:45 +0100
commitbfba97076555f1e708b4fef08fdcfa43f35d2fcb (patch)
tree76c0c0a4a43a2b46642f7ceaa35cc04de2f9bbcb /meta/recipes-devtools/guilt/files/optional_head_check.patch
parent3b2b4eef0fd06099342fcc2dfa35ecf37840c090 (diff)
downloadpoky-bfba97076555f1e708b4fef08fdcfa43f35d2fcb.tar.gz
guilt: update to latest git version
Uprev guilt to the latest guilt version from its upstream repository. As part of the uprev all of the previous changes required for the yocto kernel tools to use git to manipulate series files have been dropped. These changes were specific to circumventing parts of guilt's internal santiy checking to allow specific Yocto kernel manipluation of sub-series files. Since the kernel tools no longer need guilt, we can use an up to date and nearly pure upstream version of guilt. (From OE-Core rev: 595c4469adc36d88ba2403915fc6c1d355014a58) Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/guilt/files/optional_head_check.patch')
-rw-r--r--meta/recipes-devtools/guilt/files/optional_head_check.patch60
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 @@
1guilt: allow guilt-push to opt out of head checking
2
3Depending on the method used to construct a tree, it is entirely
4possible that branches are not only made up of guilt created commits.
5This mixed mode is valid, and in particular is valid when applying
6patches to a tree.
7
8In the default mode of operation, you will see a warning such as
9this when working on a branch:
10
11Expected HEAD commit dbd5861f81a92b8b329561f94b8575c7ee6768b6
12 got 3e8e6f6bd9f1772b91fc1fe9949f541d0560b487
13
14This looks severe, but is harmless during tree construction,
15since even if the HEAD commit was expected, you can still run into
16issues pushing a patch. This is particularly seen when templates are
17adding patches to a kernel.
18
19To make this look less ominous, we make the head check for patch
20pushing opt-in. Which means that by default, you'll no longer see
21this warning if you work with a mixed mode branch during tree
22construction.
23
24Other modes such as pop or refresh can run into problems when
25the HEAD commit isn't tracked or expected, so they should remained
26checked.
27
28Upstream-Status: Inappropriate [oe-specific]
29
30Signed-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 ;;