diff options
author | Christian Hesse <mail@eworm.de> | 2016-10-10 15:46:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-12 14:18:06 +0200 |
commit | 0a28ae1b86756517ce5642e701be1be8e9e94e17 (patch) | |
tree | cccf536303d53b08b02b8d363552e5ae5e51dc87 | |
parent | c330a2e5f86e1f77d3b724877935e11014cefa21 (diff) |
parsing: use get_commit_buffer() in cgit_parse_commit()ch/cache
Currently we use get_cached_commit_buffer(), which failes if there is no
cached commit buffer. Instead use get_commit_buffer(), which uses cached
commit buffer when available.
-rw-r--r-- | parsing.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,7 @@ struct commitinfo *cgit_parse_commit(struct commit *commit) { const int sha1hex_len = 40; struct commitinfo *ret; - const char *p = get_cached_commit_buffer(commit, NULL); + const char *p = get_commit_buffer(commit, NULL); const char *t; ret = xcalloc(1, sizeof(struct commitinfo)); |