abouttreesummaryrefslogcommitdiff
path: root/ui-summary.c
diff options
context:
space:
mode:
authorPatrick2025-12-30 22:33:31 +0100
committerPatrick2025-12-30 22:33:31 +0100
commit915444ebb07079a8ac029953d2a8e1a1fc29c7d1 (patch)
tree20a2b67da715b7196d7d599a15275b55ed2ae799 /ui-summary.c
parent1556fd9a6b0e3b7166bec57db827edaa3b63f8a0 (diff)
downloadps-cgit-915444ebb07079a8ac029953d2a8e1a1fc29c7d1.tar.gz
ps-cgit-915444ebb07079a8ac029953d2a8e1a1fc29c7d1.zip
fix
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c6
1 files changed, 3 insertions, 3 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;