summaryrefslogtreecommitdiffstats
path: root/meta/packages/guilt/files/guilt-push.patch
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@windriver.com>2010-08-10 15:01:37 -0400
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-20 16:35:39 +0100
commit2cf104f7e09d620b9c04122d15ce347db34f9577 (patch)
tree173af7dc87afd8e96ef694807bb1080ab2718591 /meta/packages/guilt/files/guilt-push.patch
parent15543017ec044b1b072a50335a6fd0a036def47e (diff)
downloadpoky-2cf104f7e09d620b9c04122d15ce347db34f9577.tar.gz
guilt: import guilt for kernel patch management
The Wind River kernel is "patched" via guilt to provide both git integration and quilt like patch management (if that is of interest). This is a modified 0.33 guilt with some changes to streamline interactions with the way that the Wind River kernel is constructed. That being said, the common semantics of guilt are not changed, and it can be used for other purposes. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta/packages/guilt/files/guilt-push.patch')
-rw-r--r--meta/packages/guilt/files/guilt-push.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/packages/guilt/files/guilt-push.patch b/meta/packages/guilt/files/guilt-push.patch
new file mode 100644
index 0000000000..2184329595
--- /dev/null
+++ b/meta/packages/guilt/files/guilt-push.patch
@@ -0,0 +1,40 @@
1guilt: add support for pushing and tagging
2
3It can be handy to push AND tag at the same time.
4
5Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
6
7---
8
9 guilt-push | 16 +++++++++++++++-
10 1 file changed, 15 insertions(+), 1 deletion(-)
11
12--- a/guilt-push
13+++ b/guilt-push
14@@ -19,7 +19,11 @@ while [ $# -gt 0 ]; do
15 -n)
16 num=t
17 ;;
18- *)
19+ -t|--t)
20+ tag=$2
21+ shift
22+ ;;
23+ *)
24 break
25 ;;
26 esac
27@@ -126,3 +130,13 @@ do
28 fi
29 done
30
31+ret=$?
32+if [ $ret -ne 0 ]; then
33+ exit $ret
34+fi
35+
36+# if a tag was specified, tag the tree now.
37+if [ -n "$tag" ]; then
38+ git-rev-parse HEAD > "$GIT_DIR/refs/tags/$tag"
39+fi
40+