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 cratefilters; 16use crategit; 17use crate; 18 19const PAGE_SIZE: usize = 100; 20 21 22pub 25 26 27pub 31 32/// Template context for the branch list page. 33 34 35 40 41/// Template context for the branch detail (log) page. 42 43 44 53 54/// Renders the full list of branches for a repository. 55pub async 67 68/// Renders a paginated log of commits reachable from the tip of the given branch. 69pub async