diff options
| author | 2025-06-03 10:30:38 -0400 | |
|---|---|---|
| committer | 2025-06-03 10:30:38 -0400 | |
| commit | 68f39eb867c851acb651f79604aba119ecaa9527 (patch) | |
| tree | 856a3de46de8196736a8fd4c59395d7192aa8353 /hosts/denpa | |
| parent | a28487fe6fbac72c7b1a752acab42dcc6ab46476 (diff) | |
| download | dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.gz dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.tar.bz2 dotfiles-68f39eb867c851acb651f79604aba119ecaa9527.zip | |
Add some gentoo stuff and update cgit
Diffstat (limited to 'hosts/denpa')
| -rw-r--r-- | hosts/denpa/cgit/readme_in_summary_no_about.diff (renamed from hosts/denpa/cgit/readme_in_summary.diff) | 12 | ||||
| -rw-r--r-- | hosts/denpa/git/git-config | 3 | ||||
| -rw-r--r-- | hosts/denpa/git/git-template.zip | bin | 0 -> 2772 bytes |
3 files changed, 10 insertions, 5 deletions
diff --git a/hosts/denpa/cgit/readme_in_summary.diff b/hosts/denpa/cgit/readme_in_summary_no_about.diff index 33756f9..73267e0 100644 --- a/hosts/denpa/cgit/readme_in_summary.diff +++ b/hosts/denpa/cgit/readme_in_summary_no_about.diff @@ -12,10 +12,10 @@ index 0eb75b1..be316f4 100644 else if (ctx.repo->homepage) cgit_redirect(ctx.repo->homepage, false); diff --git a/ui-shared.c b/ui-shared.c -index baea6f2..6b01d08 100644 +index 6fae72d..c5b609a 100644 --- a/ui-shared.c +++ b/ui-shared.c -@@ -1078,7 +1078,7 @@ void cgit_print_pageheader(void) +@@ -1082,7 +1082,7 @@ void cgit_print_pageheader(void) html("<table class='tabs'><tr><td>\n"); if (ctx.env.authenticated && ctx.repo) { @@ -25,7 +25,7 @@ index baea6f2..6b01d08 100644 hc("about"), ctx.qry.head, NULL, NULL); diff --git a/ui-summary.c b/ui-summary.c -index 947812a..faf943e 100644 +index 947812a..23c07aa 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -40,31 +40,6 @@ static void print_url(const char *url) @@ -97,7 +97,7 @@ index 947812a..faf943e 100644 } /* Print the calculated readme, either from the git repo or from the -@@ -142,6 +103,52 @@ void cgit_print_repo_readme(const char *path) +@@ -142,6 +103,54 @@ void cgit_print_repo_readme(const char *path) html("</div>"); if (free_filename) free(filename); @@ -132,7 +132,9 @@ index 947812a..faf943e 100644 + +void cgit_print_repo_readme(const char *path) +{ -+ char *mimetype = get_mimetype_for_filename(path); ++ char *mimetype; ++ ++ mimetype = get_mimetype_for_filename(path); + if (mimetype && (!strncmp(mimetype, "image/", 6) || !strncmp(mimetype, "video/", 6))) { + ctx.page.mimetype = mimetype; + ctx.page.charset = NULL; diff --git a/hosts/denpa/git/git-config b/hosts/denpa/git/git-config new file mode 100644 index 0000000..00eb9e3 --- /dev/null +++ b/hosts/denpa/git/git-config @@ -0,0 +1,3 @@ +[init] + defaultBranch = master + templatedir = /mnt/git//.git-template diff --git a/hosts/denpa/git/git-template.zip b/hosts/denpa/git/git-template.zip Binary files differnew file mode 100644 index 0000000..4ade69c --- /dev/null +++ b/hosts/denpa/git/git-template.zip |