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
172 entry.matching_attributes(attrs);172 entry.matching_attributes(attrs);
173 },173 },
174 &mut |buf| -> Result<_, gix_object::find::Error> {174 &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 {
176 None => return Ok(None),178 None => return Ok(None),
177 Some(entry) => entry,179 Some(entry) => entry,
178 };180 };

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