Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 207b215a authored by Tanguy Pruvot's avatar Tanguy Pruvot
Browse files

env: implement the repodiff command



 sample usage:
   repodiff ics
   repodiff github/ics --numstat
   repodiff android-4.0.4_r1.2 android-4.0.4_r2

Change-Id: Id1c1e504c75676707e59f051fd5ff9ce748d4297
Signed-off-by: default avatarTanguy Pruvot <tanguy.pruvot@gmail.com>
parent 7c7c424a
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1504,6 +1504,16 @@ function reposync() {
            ;;
    esac
}

function repodiff() {
    if [ -z "$*" ]; then
        echo "Usage: repodiff <ref-from> [[ref-to] [--numstat]]"
        return
    fi
    diffopts=$* repo forall -c \
      'echo "$REPO_PATH ($REPO_REMOTE)"; git diff ${diffopts} 2>/dev/null ;'
}

# Force JAVA_HOME to point to java 1.6 if it isn't already set
function set_java_home() {
    if [ ! "$JAVA_HOME" ]; then