History

refactor

Sebastian Thiel committed 5 years ago

Commit a4d5f991 parent 11018e18 files · +26 −26Browse files

Showing the changes to git-diff (3 of 8 files). Show all

Unified · Split

3 files
  1. git-diff/src/visit/record.rs +1 −1
  2. git-diff/src/visit/recorder.rs +1 −1
  3. git-diff/tests/visit/mod.rs +1 −1
git-diff/src/visit/record.rs+1−1
@@ -2,7 +2,7 @@ use git_hash::ObjectId; · 1 unmodified line
2use git_object::{bstr::BStr, tree};2use git_object::{bstr::BStr, tree};
3 3
4pub enum Change {4pub enum Change {
5 Addition { mode: tree::Mode, oid: ObjectId },5 Addition { mode: tree::EntryMode, oid: ObjectId },
6 Copy,6 Copy,
7 Deletion,7 Deletion,
8 Modification,8 Modification,
git-diff/src/visit/recorder.rs+1−1
@@ -9,7 +9,7 @@ use std::{ops::Deref, path::PathBuf}; · 8 unmodified lines
9#[derive(Clone, Debug, PartialEq, Eq)]9#[derive(Clone, Debug, PartialEq, Eq)]
10pub enum Change {10pub enum Change {
11 Addition {11 Addition {
12 mode: tree::Mode,12 mode: tree::EntryMode,
13 oid: ObjectId,13 oid: ObjectId,
14 path: PathBuf,14 path: PathBuf,
15 },15 },
git-diff/tests/visit/mod.rs+1−1
@@ -62,7 +62,7 @@ mod changes { · 61 unmodified lines
62 assert_eq!(62 assert_eq!(
63 diff_at(FIRST_COMMIT).unwrap(),63 diff_at(FIRST_COMMIT).unwrap(),
64 vec![recorder::Change::Addition {64 vec![recorder::Change::Addition {
65 mode: git_object::tree::Mode::Tree,65 mode: git_object::tree::EntryMode::Tree,
66 oid: hex_to_id("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"),66 oid: hex_to_id("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"),
67 path: "f".into()67 path: "f".into()
68 }]68 }]