pub struct Notes { /* private fields */ }Expand description
The notes under refs/notes/NAME of one repository.
Implementations§
Source§impl Notes
impl Notes
pub fn new(git: Git, name: &str) -> Self
Sourcepub fn append(&self, commit: &str, lines: &[String]) -> Result<(), Error>
pub fn append(&self, commit: &str, lines: &[String]) -> Result<(), Error>
Adds lines to the note on commit, keeping what it holds.
Sourcepub fn along(&self, rev: &str, depth: usize) -> Vec<(String, Vec<String>)>
pub fn along(&self, rev: &str, depth: usize) -> Vec<(String, Vec<String>)>
The notes on rev and its first-parent ancestors, newest first, up
to depth commits back: each commit that has a note, with its lines.
Auto Trait Implementations§
impl Forget for Notes
impl Freeze for Notes
impl Move for Notes
impl RefUnwindSafe for Notes
impl Send for Notes
impl Sync for Notes
impl Unpin for Notes
impl UnsafeUnpin for Notes
impl UnwindSafe for Notes
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more