summaryrefslogtreecommitdiffstats
path: root/src/handlers/diff_header.rs
diff options
context:
space:
mode:
authorPaul <dominiak.pawel@gmail.com>2024-03-02 15:06:31 +0100
committerGitHub <noreply@github.com>2024-03-02 09:06:31 -0500
commit977f89ae0d8cd46bd8cab67a5fcc37b876abe31d (patch)
tree1e7f4e2130f224af67a0103971190e78c690366e /src/handlers/diff_header.rs
parentf7ae06a5f1e6943d4a78c8ede313ecd89c8563db (diff)
Fix headers of modified binary files, closes #1621 (#1629)
Diffstat (limited to 'src/handlers/diff_header.rs')
-rw-r--r--src/handlers/diff_header.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/diff_header.rs b/src/handlers/diff_header.rs
index 334ca76c..3c71a61a 100644
--- a/src/handlers/diff_header.rs
+++ b/src/handlers/diff_header.rs
@@ -357,7 +357,7 @@ fn parse_diff_header_line(line: &str, git_diff_name: bool) -> (String, FileEvent
/// Given input like "diff --git a/src/my file.rs b/src/my file.rs"
/// return Some("src/my file.rs")
-fn get_repeated_file_path_from_diff_line(line: &str) -> Option<String> {
+pub fn get_repeated_file_path_from_diff_line(line: &str) -> Option<String> {
if let Some(line) = line.strip_prefix("diff --git ") {
let line: Vec<&str> = line.graphemes(true).collect();
let midpoint = line.len() / 2;