Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

oebb.sh: add reset command

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information...
commit ce4a376e19e12518039bcb60d6d5085eb0cb823b 1 parent e919538
@shr-project shr-project authored koenkooi committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 oebb.sh
View
16 oebb.sh
@@ -332,6 +332,15 @@ function tag_layers()
}
###############################################################################
+# reset_layers - Remove all local changes including stash and ignored files
+###############################################################################
+function reset_layers()
+{
+ set_environment
+ env gawk -v command=reset -f ${OE_BASE}/scripts/layers.awk ${OE_LAYERS_TXT}
+}
+
+###############################################################################
# changelog - Display changelog for all layers with a given tag
###############################################################################
function changelog()
@@ -385,6 +394,12 @@ then
exit 0
fi
+ if [ $1 = "reset" ]
+ then
+ reset_layers
+ exit 0
+ fi
+
if [ $1 = "tag" ]
then
if [ -n "$2" ] ; then
@@ -446,6 +461,7 @@ fi
echo ""
echo "Usage: $0 config <machine>"
echo " $0 update"
+echo " $0 reset"
echo " $0 tag [tagname]"
echo " $0 changelog <tagname>"
echo " $0 checkout <tagname>"
Please sign in to comment.
Something went wrong with that request. Please try again.