Skip to content

Commit

Permalink
<feature> add GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH support
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyan committed Dec 18, 2024
1 parent 7d5c020 commit 7db456d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,11 @@ impl<'cb> CheckoutBuilder<'cb> {
self.flag(raw::GIT_CHECKOUT_CONFLICT_STYLE_DIFF3, on)
}

/// Treat paths as a simple list.
pub fn disable_pathspec_match(&mut self, on: bool) -> &mut CheckoutBuilder<'cb> {
self.flag(raw::GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH, on)
}

/// Indicate whether to apply filters like CRLF conversion.
pub fn disable_filters(&mut self, disable: bool) -> &mut CheckoutBuilder<'cb> {
self.disable_filters = disable;
Expand Down

0 comments on commit 7db456d

Please sign in to comment.