generating patches by using git