From 199129162d0219290ae4504fa27948b442208179 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Wed, 11 Sep 2024 20:47:15 +0200 Subject: [PATCH] on empty new file the generic hunk is type added --- crates/gitbutler-diff/src/diff.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gitbutler-diff/src/diff.rs b/crates/gitbutler-diff/src/diff.rs index fcfc14101..48708c27f 100644 --- a/crates/gitbutler-diff/src/diff.rs +++ b/crates/gitbutler-diff/src/diff.rs @@ -78,7 +78,7 @@ impl GitHunk { new_lines: 0, diff_lines: Default::default(), binary: false, - change_type: ChangeType::Modified, + change_type: ChangeType::Added, } } }