Commit loose changes before modifications.