pub enum NotesAction {
Add {
object: Option<String>,
message: Option<String>,
message_file: Option<PathBuf>,
force: bool,
allow_empty: bool,
no_stripspace: bool,
},
Append {
object: Option<String>,
message: Option<String>,
message_file: Option<PathBuf>,
allow_empty: bool,
no_stripspace: bool,
},
Copy {
from: String,
to: String,
force: bool,
},
Show {
object: Option<String>,
},
List {
object: Option<String>,
},
Remove {
object: Option<String>,
ignore_missing: bool,
},
Prune {
dry_run: bool,
verbose: bool,
},
}Expand description
Actions supported by git notes.
Variants§
Add
git notes add [-f] [--allow-empty] [-m <msg> | -F <file>] [<object>].
Fields
Append
git notes append [--allow-empty] [-m <msg> | -F <file>] [<object>].
Fields
Copy
git notes copy [-f] <from-object> <to-object>.
Fields
Show
git notes show [<object>].
Exits non-zero when no note exists for the object — surfaced as a clean
Error::CommandFailed, never
swallowed.
List
git notes list [<object>].
Remove
git notes remove [--ignore-missing] [<object>].
Fields
Prune
git notes prune [-n] [-v] — drop notes for non-existent objects.
Trait Implementations§
Source§impl Clone for NotesAction
impl Clone for NotesAction
Source§fn clone(&self) -> NotesAction
fn clone(&self) -> NotesAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NotesAction
impl RefUnwindSafe for NotesAction
impl Send for NotesAction
impl Sync for NotesAction
impl Unpin for NotesAction
impl UnsafeUnpin for NotesAction
impl UnwindSafe for NotesAction
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