pub fn commit(opts: &CommitOptions, config: &Config) -> Result<(), DiaryError>