Get commit text from file