We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChangeRef::field()
1 parent a0cef8b commit fad0118Copy full SHA for fad0118
gix-diff/src/index/change.rs
@@ -82,6 +82,12 @@ impl ChangeRef<'_, '_> {
82
/// Return all shared fields among all variants: `(location, index, entry_mode, id)`
83
///
84
/// In case of rewrites, the fields return to the current change.
85
+ ///
86
+ /// Note that there are also more specific accessors in case you only need to access to one of
87
+ /// these fields individually.
88
89
+ /// See [`ChangeRef::location()`], [`ChangeRef::index()`], [`ChangeRef::entry_mode()`] and
90
+ /// [`ChangeRef::id()`].
91
pub fn fields(&self) -> (&BStr, usize, gix_index::entry::Mode, &gix_hash::oid) {
92
match self {
93
ChangeRef::Addition {
0 commit comments