diff options
Diffstat (limited to 'meta/recipes-devtools/guilt/files/guilt-push.patch')
-rw-r--r-- | meta/recipes-devtools/guilt/files/guilt-push.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/guilt/files/guilt-push.patch b/meta/recipes-devtools/guilt/files/guilt-push.patch new file mode 100644 index 0000000000..2184329595 --- /dev/null +++ b/meta/recipes-devtools/guilt/files/guilt-push.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | guilt: add support for pushing and tagging | ||
2 | |||
3 | It can be handy to push AND tag at the same time. | ||
4 | |||
5 | Signed-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 | + | ||