~/selfhut

1dc73f56715b3a4965ade497c8ac496ed3884c76 — Arthur Melton 392c317a 2 years ago
fix
2 files changed, 9 insertions(+), 9 deletions(-)

M src/git/commits.rs
M src/repository/log.rs
M src/git/commits.rs => src/git/commits.rs +1 -1
@@ 3,7 3,7 @@ use crate::git::diffs::diffs;

use chrono::{Duration, Utc};
use chrono_humanize::HumanTime;
use serde_derive::Serialize;
use std::borrow::Cow;


pub fn get_commits(
    repo_name: String,

M src/repository/log.rs => src/repository/log.rs +8 -8
@@ 1,17 1,17 @@

use crate::config::CONFIG;
use crate::git::commits::get_commits;
use crate::git::file::{file, files};

use crate::git::main_branch::main_branch;
use crate::utils::repo_config::repo_config;
use crate::PathBufWithDotfiles;
use rocket_dyn_templates::{context, Template};
use std::ffi::OsStr;
use std::path::Path;
use syntect::easy::HighlightLines;
use syntect::highlighting::{Style, ThemeSet};
use syntect::html::highlighted_html_for_string;
use syntect::parsing::SyntaxSet;
use syntect::util::LinesWithEndings;








#[get("/<repo>/log?<from>", rank = 2)]
pub fn log_main(repo: String, from: Option<String>) -> Option<Template> {