From b5c119e802f19d3aed147485b98c647f707ce9f2 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 22 Apr 2018 15:11:35 +0200 Subject: [PATCH] Rename get_line_changes --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 904a6873..f753727b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -105,7 +105,7 @@ fn print_file>( Ok(()) } -fn get_line_changes(filename: String) -> Option { +fn get_git_diff(filename: String) -> Option { let repo = Repository::open_from_env().ok()?; let mut diff_options = DiffOptions::new(); @@ -166,7 +166,7 @@ fn run(matches: &ArgMatches) -> Result<()> { if let Some(files) = matches.values_of("FILE") { for file in files { - let line_changes = get_line_changes(file.to_string()); + let line_changes = get_git_diff(file.to_string()); print_file(theme, &syntax_set, file, line_changes)?; } }