Skip to content

Commit 7db456d

Browse files
author
yuanyan
committed
<feature> add GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH support
1 parent 7d5c020 commit 7db456d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,11 @@ impl<'cb> CheckoutBuilder<'cb> {
491491
self.flag(raw::GIT_CHECKOUT_CONFLICT_STYLE_DIFF3, on)
492492
}
493493

494+
/// Treat paths as a simple list.
495+
pub fn disable_pathspec_match(&mut self, on: bool) -> &mut CheckoutBuilder<'cb> {
496+
self.flag(raw::GIT_CHECKOUT_DISABLE_PATHSPEC_MATCH, on)
497+
}
498+
494499
/// Indicate whether to apply filters like CRLF conversion.
495500
pub fn disable_filters(&mut self, disable: bool) -> &mut CheckoutBuilder<'cb> {
496501
self.disable_filters = disable;

0 commit comments

Comments
 (0)