File tree Expand file tree Collapse file tree 4 files changed +26
-20
lines changed
gix-pack/src/data/output/count/objects Expand file tree Collapse file tree 4 files changed +26
-20
lines changed Original file line number Diff line number Diff line change @@ -304,12 +304,16 @@ Check out the [performance discussion][gix-diff-performance] as well.
304304
305305* ** tree**
306306 * [x] changes needed to obtain _ other tree_
307- * ** patches**
308- * There are various ways to generate a patch from two blobs.
309- * [ ] text
310- * [ ] binary
311- * ** lines**
312- * [x] Simple line-by-line diffs powered by the ` imara-diff ` crate.
307+ * ** blobs**
308+ * ** patches**
309+ * There are various ways to generate a patch from two blobs.
310+ * [ ] text
311+ * [ ] binary
312+ * [ ] ` git-apply ` compatibility
313+ * [ ] merge hunks that are close enough based on line-setting (` interhunk-lines ` )
314+ * [ ] white-space related settings
315+ * ** lines**
316+ * [x] Simple line-by-line diffs powered by the ` imara-diff ` crate.
313317* ** generic rename tracker to find renames and copies**
314318 * [x] find blobs by exact match
315319 * [x] find blobs by similarity check
@@ -335,12 +339,13 @@ Check out the [performance discussion][gix-diff-performance] as well.
335339
336340### gix-merge
337341
338- * [x] three-way merge analysis of blobs with choice of how to resolve conflicts
342+ * [x] three-way merge analysis of ** blobs** with choice of how to resolve conflicts
339343 - [ ] choose how to resolve conflicts on the data-structure
340344 - [ ] produce a new blob based on data-structure containing possible resolutions
341345 - [x] ` merge ` style
342346 - [x] ` diff3 ` style
343347 - [x] ` zdiff ` style
348+ - [ ] a way to control inter-hunk merging based on proximity (maybe via ` gix-diff ` feature which could use the same)
344349* [ ] diff-heuristics match Git perfectly
345350* [x] API documentation
346351 * [ ] Examples
Original file line number Diff line number Diff line change @@ -247,14 +247,14 @@ mod expand {
247247
248248 changes_delegate. clear ( ) ;
249249 let objects = CountingObjects :: new ( db) ;
250- gix_diff:: tree:: Changes :: from ( Some ( parent_tree ) )
251- . needed_to_obtain (
252- current_tree_iter,
253- & mut tree_diff_state,
254- & objects,
255- & mut changes_delegate,
256- )
257- . map_err ( Error :: TreeChanges ) ?;
250+ gix_diff:: tree (
251+ parent_tree ,
252+ current_tree_iter,
253+ & mut tree_diff_state,
254+ & objects,
255+ & mut changes_delegate,
256+ )
257+ . map_err ( Error :: TreeChanges ) ?;
258258 stats. decoded_objects += objects. into_count ( ) ;
259259 }
260260 & changes_delegate. objects
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ pub enum Error {
9090 #[ error( transparent) ]
9191 TreeTraverse ( gix_traverse:: tree:: breadthfirst:: Error ) ,
9292 #[ error( transparent) ]
93- TreeChanges ( gix_diff:: tree:: changes :: Error ) ,
93+ TreeChanges ( gix_diff:: tree:: Error ) ,
9494 #[ error( "Operation interrupted" ) ]
9595 Interrupted ,
9696}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use crate::{
1414#[ allow( missing_docs) ]
1515pub enum Error {
1616 #[ error( transparent) ]
17- Diff ( #[ from] gix_diff:: tree:: changes :: Error ) ,
17+ Diff ( #[ from] gix_diff:: tree:: Error ) ,
1818 #[ error( "The user-provided callback failed" ) ]
1919 ForEach ( #[ source] Box < dyn std:: error:: Error + Send + Sync + ' static > ) ,
2020 #[ error( transparent) ]
@@ -88,7 +88,8 @@ impl<'old> Platform<'_, 'old> {
8888 tracked : self . rewrites . map ( rewrites:: Tracker :: new) ,
8989 err : None ,
9090 } ;
91- match gix_diff:: tree:: Changes :: from ( TreeRefIter :: from_bytes ( & self . lhs . data ) ) . needed_to_obtain (
91+ match gix_diff:: tree (
92+ TreeRefIter :: from_bytes ( & self . lhs . data ) ,
9293 TreeRefIter :: from_bytes ( & other. data ) ,
9394 & mut self . state ,
9495 & repo. objects ,
@@ -103,9 +104,9 @@ impl<'old> Platform<'_, 'old> {
103104 None => Ok ( outcome) ,
104105 }
105106 }
106- Err ( gix_diff:: tree:: changes :: Error :: Cancelled ) => delegate
107+ Err ( gix_diff:: tree:: Error :: Cancelled ) => delegate
107108 . err
108- . map_or ( Err ( Error :: Diff ( gix_diff:: tree:: changes :: Error :: Cancelled ) ) , |err| {
109+ . map_or ( Err ( Error :: Diff ( gix_diff:: tree:: Error :: Cancelled ) ) , |err| {
109110 Err ( Error :: ForEach ( err. into ( ) ) )
110111 } ) ,
111112 Err ( err) => Err ( err. into ( ) ) ,
You can’t perform that action at this time.
0 commit comments