Save matplotlib figures with embedded git metadata