aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-10-10 15:46:29 +0200
committerChristian Hesse <mail@eworm.de>2016-10-12 14:18:06 +0200
commit0a28ae1b86756517ce5642e701be1be8e9e94e17 (patch)
treecccf536303d53b08b02b8d363552e5ae5e51dc87
parentc330a2e5f86e1f77d3b724877935e11014cefa21 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing.c b/parsing.c
index 9dacb16..9c8bb6f 100644
--- a/parsing.c
+++ b/parsing.c
@@ -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));