| 112 | } |
| 113 | |
| 114 | struct commit *lookup_commit_reference_by_name_gently(const char *name, |
| 115 | int quiet) |
| 116 | { |
| 117 | struct object_id oid; |
| 118 | struct commit *commit; |
| 119 | |
| 120 | if (repo_get_oid_committish(the_repository, name, &oid)) |
| 121 | return NULL; |
| 122 | commit = lookup_commit_reference_gently(the_repository, &oid, quiet); |
| 123 | if (repo_parse_commit(the_repository, commit)) |
| 124 | return NULL; |
| 125 | return commit; |
| 126 | } |
| 127 | |
| 128 | static timestamp_t parse_commit_date(const char *buf, const char *tail) |
| 129 | { |
no test coverage detected