#!/usr/bin/env bash

branch=`git branch | grep '^\*' | gawk  -e '{ print $2 }'`
gitrev=`git log --oneline | head -n 1 | gawk -e '{print $1}'`
svnrev=`git log --oneline | wc -l`
[[ -z "`git status -s -uno`" ]] && modified="" || modified="M"
echo $branch-$gitrev-r$svnrev$modified
