pub struct LogPatchOptions {
pub diff: DiffOptions,
pub abbrev_len: usize,
pub commit_header: LogPatchCommitHeader,
pub binary_format: LogPatchBinaryFormat,
pub pathspecs: Vec<String>,
pub diff_merges: DiffMerges,
}Expand description
Options for write_commit_log_patch.
Fields§
§diff: DiffOptionsUnified diff hunk settings.
abbrev_len: usizeMinimum abbreviated oid length (core.abbrev, default 7).
commit_header: LogPatchCommitHeaderCommit header shape before patches.
binary_format: LogPatchBinaryFormatHow to encode binary file changes in the patch body.
pathspecs: Vec<String>Limit patches to these pathspecs (empty = all paths).
diff_merges: DiffMergesHow to diff merge commits (combined omits apply-ready patch bodies).
Implementations§
Source§impl LogPatchOptions
impl LogPatchOptions
Sourcepub fn git_default(config: &ConfigSet) -> Self
pub fn git_default(config: &ConfigSet) -> Self
Defaults matching git log -p on a typical repository.
Trait Implementations§
Source§impl Clone for LogPatchOptions
impl Clone for LogPatchOptions
Auto Trait Implementations§
impl Freeze for LogPatchOptions
impl RefUnwindSafe for LogPatchOptions
impl Send for LogPatchOptions
impl Sync for LogPatchOptions
impl Unpin for LogPatchOptions
impl UnsafeUnpin for LogPatchOptions
impl UnwindSafe for LogPatchOptions
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