Show branch starts in commit history
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use crate::models;
|
||||
|
||||
pub const DEFAULT_PAGE_SIZE: i32 = 30;
|
||||
@@ -159,6 +157,7 @@ pub struct HistoryCommit {
|
||||
pub top_connections: Vec<usize>,
|
||||
pub bottom_connections: Vec<usize>,
|
||||
pub refs: Vec<String>,
|
||||
pub branch_starts: Vec<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
@@ -168,8 +167,6 @@ pub struct HomeData {
|
||||
pub next_page: Option<i32>,
|
||||
}
|
||||
|
||||
pub type PullRefs = HashMap<String, Vec<String>>;
|
||||
|
||||
pub fn api_date(timestamp: i64) -> String {
|
||||
let (year, month, day) = civil_from_days(timestamp.div_euclid(86_400));
|
||||
format!("{year:04}-{month:02}-{day:02}T00:00:00Z")
|
||||
|
||||
Reference in New Issue
Block a user