Skip to content

Commit 5c1f010

Browse files
committedOct 8, 2024
adapt to chagnes in gix-diff
1 parent cebef0b commit 5c1f010

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed
 

‎gix-pack/src/data/output/count/objects/tree.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ pub mod changes {
4242

4343
fn visit(&mut self, change: Change) -> Action {
4444
match change {
45-
Change::Addition { oid, entry_mode } | Change::Modification { oid, entry_mode, .. } => {
45+
Change::Addition {
46+
oid,
47+
entry_mode,
48+
relation: _,
49+
}
50+
| Change::Modification { oid, entry_mode, .. } => {
4651
if entry_mode.is_commit() {
4752
return Action::Continue;
4853
}

‎gix/src/object/tree/diff/for_each.rs

+10-2
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,19 @@ where
139139
) -> gix_diff::tree::visit::Action {
140140
use gix_diff::tree::visit::Change::*;
141141
let event = match change {
142-
Addition { entry_mode, oid } => change::Event::Addition {
142+
Addition {
143+
entry_mode,
144+
oid,
145+
relation: _,
146+
} => change::Event::Addition {
143147
entry_mode,
144148
id: oid.attach(other_repo),
145149
},
146-
Deletion { entry_mode, oid } => change::Event::Deletion {
150+
Deletion {
151+
entry_mode,
152+
oid,
153+
relation: _,
154+
} => change::Event::Deletion {
147155
entry_mode,
148156
id: oid.attach(repo),
149157
},

0 commit comments

Comments
 (0)
Please sign in to comment.