added gittreestatus function