Improved commit parsing