added feature that get branch commits