diff options
| author | Patrick | 2025-12-30 22:33:31 +0100 |
|---|---|---|
| committer | Patrick | 2025-12-30 22:33:31 +0100 |
| commit | 915444ebb07079a8ac029953d2a8e1a1fc29c7d1 (patch) | |
| tree | 20a2b67da715b7196d7d599a15275b55ed2ae799 | |
| parent | 1556fd9a6b0e3b7166bec57db827edaa3b63f8a0 (diff) | |
| download | ps-cgit-915444ebb07079a8ac029953d2a8e1a1fc29c7d1.tar.gz ps-cgit-915444ebb07079a8ac029953d2a8e1a1fc29c7d1.zip | |
fix
| -rw-r--r-- | ui-summary.c | 6 | ||||
| -rw-r--r-- | ui-summary.h | 2 | ||||
| -rw-r--r-- | ui-tree.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/ui-summary.c b/ui-summary.c index 6725634..00a5dd5 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -185,7 +185,7 @@ static int get_readme_oid_cb(const struct object_id *oid, struct strbuf *base, strbuf_release(&buffer); for (int i = 0; i < sizeof(readme_names)/sizeof(*readme_names); i++) { - if (match_base && stricmp(pathname, readme_names[i]) == 0) { + if (match_base && strcasecmp(pathname, readme_names[i]) == 0) { *(ctx->oid) = *oid; *(ctx->filename) = xstrdup(pathname); ctx->found = true; @@ -198,7 +198,7 @@ static int get_readme_oid_cb(const struct object_id *oid, struct strbuf *base, return 0; } -bool get_readme_oid(const struct tree *tree, struct pathspec *paths, struct object_id *oid, char **filename) { +bool get_readme_oid(struct tree *tree, struct pathspec *paths, struct object_id *oid, char **filename) { struct get_readme_oid_ctx gro_ctx = (struct get_readme_oid_ctx){ .oid = oid, .filename = filename, @@ -209,7 +209,7 @@ bool get_readme_oid(const struct tree *tree, struct pathspec *paths, struct obje return gro_ctx.found; } -void cgit_print_repo_readme_no_layout(const struct tree *tree, struct pathspec *paths) +void cgit_print_repo_readme_no_layout(struct tree *tree, struct pathspec *paths) { char *filename = NULL; struct object_id readme_oid; diff --git a/ui-summary.h b/ui-summary.h index 29b6c1c..c27358d 100644 --- a/ui-summary.h +++ b/ui-summary.h @@ -3,6 +3,6 @@ extern void cgit_print_summary(void); extern void cgit_print_repo_readme(const char *path); -extern void cgit_print_repo_readme_no_layout(const struct tree *tree, struct pathspec *paths); +extern void cgit_print_repo_readme_no_layout(struct tree *tree, struct pathspec *paths); #endif /* UI_SUMMARY_H */ @@ -296,7 +296,7 @@ static void ls_head(void) html("</tr>\n"); } -static void ls_tail(const struct tree *tree, struct pathspec *paths) +static void ls_tail(struct tree *tree, struct pathspec *paths) { html("<tr><td colspan=\"4\"><input type=\"checkbox\" id=\"show-all\"><label for=\"show-all\">Show All</label></td></tr>"); html("</table>\n"); |
