Skip to content

Commit f1591fb

Browse files
committed
feat: add traits for partial equality comparison to tree_with_rewrites::Change types
1 parent 0f46d24 commit f1591fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gix-diff/src/tree_with_rewrites/change.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use bstr::BString;
44
use bstr::{BStr, ByteSlice};
55

66
/// Represents any possible change in order to turn one tree into another, which references data owned by its producer.
7-
#[derive(Debug, Clone, Copy)]
7+
#[derive(Debug, Clone, Copy, PartialEq)]
88
pub enum ChangeRef<'a> {
99
/// An entry was added, like the addition of a file or directory.
1010
Addition {
@@ -101,7 +101,7 @@ pub enum ChangeRef<'a> {
101101
}
102102

103103
/// Represents any possible change in order to turn one tree into another, with fully-owned data.
104-
#[derive(Debug, Clone)]
104+
#[derive(Debug, Clone, PartialEq)]
105105
pub enum Change {
106106
/// An entry was added, like the addition of a file or directory.
107107
Addition {

0 commit comments

Comments
 (0)