File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ impl<'a> Platform<'a> {
20
20
/// # Panics
21
21
///
22
22
/// If the cache was configured without exclude patterns.
23
+ #[ doc( alias = "is_path_ignored" , alias = "git2" ) ]
23
24
pub fn is_excluded ( & self ) -> bool {
24
25
self . matching_exclude_pattern ( )
25
26
. map_or ( false , |m| !m. pattern . is_negative ( ) )
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ impl<'repo> AttributeStack<'repo> {
39
39
/// path is created as directory. If it's not known it is assumed to be a file.
40
40
///
41
41
/// Provide access to cached information for that `relative` path via the returned platform.
42
+ #[ doc( alias = "is_path_ignored" , alias = "git2" ) ]
42
43
pub fn at_path (
43
44
& mut self ,
44
45
relative : impl AsRef < std:: path:: Path > ,
Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ impl Repository {
106
106
/// When only excludes are desired, this is the most efficient way to obtain them. Otherwise use
107
107
/// [`Repository::attributes()`] for accessing both attributes and excludes.
108
108
// TODO: test
109
+ #[ doc( alias = "is_path_ignored" , alias = "git2" ) ]
109
110
#[ cfg( feature = "excludes" ) ]
110
111
pub fn excludes (
111
112
& self ,
You can’t perform that action at this time.
0 commit comments