jojo/routers
Gusted f9a6460cec chore: simplify GetNote (#9985)
Return the Note object (avoid C-style functions).

Motivation to refactor this function is to avoid the function that uses last commit cache for git-notes, because it is not needed at the scale of git-notes. In the worst case it can be considered to make a patch to git to get the message and commitID, because git seems to have efficient code to do this (for getting messages, but does not expose the commit id).

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/9985
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-11-06 13:23:35 +01:00
..
api chore: simplify GetNote (#9985) 2025-11-06 13:23:35 +01:00
common chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
install chore: rename 'migrations' to 'gitea_migrations' 2025-10-14 14:40:49 -06:00
private chore: remove branding from context imports (#9628) 2025-10-11 01:52:51 +02:00
utils [PORT] drop utils.IsExternalURL (and expand IsRiskyRedirectURL tests) (#3167) 2024-04-15 13:03:08 +00:00
web chore: simplify GetNote (#9985) 2025-11-06 13:23:35 +01:00
init.go fix: reduce deadlocks merging PRs w/ async label stat recalcs (#9868) 2025-10-31 02:12:36 +01:00