ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
Yuya Nishihara 5e356ffd24 diff: filter out uninteresting copy records by matcher
Git reports a rename source as deleted if the rename target is excluded. I
think that's because Git restricts the search space to the specified paths. For
example, Git doesn't also recognize a rename if the source path is excluded
whereas jj does.

I don't think we need to copy the exact behavior of Git, so this patch just
moves matcher application to earlier stage. This change will help remove
collect_copied_sources().

The added get_copy_records() helper could be moved to jj_lib, but we'll probably
want a stream version of this function in library, and writing a stream adapter
isn't as simple as iterator.
2024-08-22 20:17:19 +09:00
..
examples working_copy: delete path() method from trait 2024-08-16 16:55:14 -07:00
src diff: filter out uninteresting copy records by matcher 2024-08-22 20:17:19 +09:00
testing fake-formatter: add --uppercase and --append formatting behaviors 2024-07-25 13:40:18 -05:00
tests diff: add option to display complex color-words diffs without inlining 2024-08-21 17:48:52 +09:00
build.rs
Cargo.toml built-in pager: write a message to the user if pager failed to start 2024-08-03 17:45:18 -07:00
LICENSE