Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Start each history walk through one helper
Diffstat (limited to '')
| -rw-r--r-- | source/ui-shared.c | 8 |
1 file changed, 8 insertions, 0 deletions
diff --git a/source/ui-shared.c b/source/ui-shared.c index 3116b7f..cef57eb 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1526,6 +1526,14 @@ int cgit_get_old_oid(const char *old_rev, const struct commit *commit, struct ob return 0; } +int cgit_prepare_walk(struct rev_info *rev) +{ + if (!prepare_revision_walk(rev)) + return 0; + cgit_print_error_page(500, "Internal Server Error", "Unable to read the history"); + return -1; +} + static void add_clone_urls(void (*fn)(const char *), char *urls, char *suffix) { struct strbuf **url_list = strbuf_split_str(urls, ' ', 0); |
