You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Do not keep track of filepaths at all, which will leave all `location` fields empty.
pubfnno_locations(&mutself) -> &mutSelf{
self.location = Some(Location::FileName);
self
}
/// Keep track of file-names, which makes `location` fields usable with the filename of the changed item.
pubfntrack_filename(&mutself) -> &mutSelf{
self.location = Some(Location::FileName);
self
}
The doc for the no_locations method says Do not keep track of filepaths at all [...], for the track_filename it says Keep track of [...].
Expected behavior 🤔
Based on the documentation of the no_locations method I would expect an impl like this:
/// Do not keep track of filepaths at all, which will leave all `location` fields empty.pubfnno_locations(&mutself) -> &mutSelf{self.location = None;self}
Git behavior
/
Steps to reproduce 🕹
No response
The text was updated successfully, but these errors were encountered:
That's a great catch and definitely looks like an… urm… copy-paste error. I wonder what the purpose of this API was, but it's obviously not tested either as more of a translation layer or API wrap.
A PR would definitely welcome if you'd want to contribute that.
Current behavior 😯
Hi,
I just saw today that the Setters for the Diff-Options in
gix/src/diff.rs
has the same implementation for theno_locations
andtrack_filename
:gitoxide/gix/src/diff.rs
Lines 67 to 78 in 5f9de52
The doc for the
no_locations
method saysDo not keep track of filepaths at all [...]
, for thetrack_filename
it saysKeep track of [...]
.Expected behavior 🤔
Based on the documentation of the
no_locations
method I would expect an impl like this:Git behavior
/
Steps to reproduce 🕹
No response
The text was updated successfully, but these errors were encountered: