Parent
[>]
1//! Route handlers for branch pages. 2//! 3//! Covers two routes: the branch list (`/{repo}/branches`) and the branch 4//! detail page (`/{repo}/branches/{*branch}`). The detail handler resolves 5//! the branch ref to its tip commit and walks ancestors to produce a log view. 6 7use Template; 8use WebTemplate; 9use ; 10use IntoResponse; 11use Deserialize; 12 13use crateSiteConfig; 14use crateResult; 15use crategit; 16use crate; 17 18const PAGE_SIZE: usize = 100; 19 20 21pub 24 25 26pub 30 31/// Template context for the branch list page. 32 33 34 39 40/// Template context for the branch detail (log) page. 41 42 43 52 53/// Renders the full list of branches for a repository. 54pub async 66 67/// Renders a paginated log of commits reachable from the tip of the given branch. 68pub async