git api method tree