yagit

Yet another static site generator for Git 🙀️

Commit
07eaf99d4554035157731c7f9ba302ff5f0338e9
Parent
fcee797ae625e6a4df71039a0251c0aeabc97ce1
Author
Pablo <pablo-pie@riseup.net>
Date

Omit EOFNL from diffstats

Diffstats

1 files changed, 3 insertions, 7 deletions

Status Name Changes Insertions Deletions
Modified src/main.rs 2 files changed 3 7
diff --git a/src/main.rs b/src/main.rs
@@ -1022,16 +1022,12 @@ impl<'repo> RepoRenderer<'repo> {
               Delta::Modified => {
                 let origin_type = line.origin_value();
                 if matches!(origin_type,
-                            DiffLineType::Addition |
-                            DiffLineType::AddEOFNL |
-                            DiffLineType::Deletion |
-                            DiffLineType::DeleteEOFNL) {
-
+                            DiffLineType::Addition | DiffLineType::Deletion) {
                   let (origin, class, lineno) = match origin_type {
-                    DiffLineType::Addition | DiffLineType::AddEOFNL => {
+                    DiffLineType::Addition => {
                       ('+', "i", line.new_lineno().unwrap())
                     }
-                    DiffLineType::Deletion | DiffLineType::DeleteEOFNL => {
+                    DiffLineType::Deletion => {
                       ('-', "d", line.old_lineno().unwrap())
                     }
                     _ => unreachable!(),