History

fix: `filter::Pipeline::convert_to_git()` now also works on Windows under all circumstances.

Sebastian Thiel committed 1 year ago

Commit dcdb8ea1 parent 544cdaf1 file · +3 −1Browse files

Unified · Split

gix/src/filter.rs+3−1
@@ -172,7 +172,9 @@ impl Pipeline<'_> { · 171 unmodified lines
172172 entry.matching_attributes(attrs);
173173 },
174174 &mut |buf| -> Result<_, gix_object::find::Error> {
175− let entry = match index.entry_by_path(gix_path::into_bstr(rela_path).as_ref()) {
175+ let entry = match index
176+ .entry_by_path(gix_path::to_unix_separators_on_windows(gix_path::into_bstr(rela_path)).as_ref())
177+ {
176178 None => return Ok(None),
177179 Some(entry) => entry,
178180 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t