GitRepoFinder class
Finds git repositories under a given root.
Constructors
- GitRepoFinder({String toolBasename = 'buildkit', bool ignoreSkipMarkers = false})
-
A finder that skips what project mode (FolderScanner) skips: hidden
folders, kAlwaysSkipDirectories, folders holding
tom_skip.yamlor{toolBasename}_skip.yaml, and nested workspaces ({toolBasename}_master.yamlbelow the root).ignoreSkipMarkers(--no-skip) walks into the marked folders and nested workspaces.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreSkipMarkers → bool
-
When true, the skip markers and nested workspaces do not stop the walk
(
--no-skip); hidden and always-skipped folders still do.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
skippedWorkspaces
→ List<
String> -
The nested workspaces the walks so far passed over, in the order met.
final
- toolBasename → String
-
Tool name of the tool-specific skip file and workspace marker.
final
Methods
-
findAll(
String root) → Future< List< FsFolder> > -
Find all git repositories under
rootrecursively.rootitself is not checked for skip markers (its own workspace marker is its root). -
findTopRepo(
String startPath) → String? -
Find the topmost git repository by traversing up from
startPath. -
findWorkspaceRepos(
String root) → List< String> - Find git repositories at workspace level (shallow search).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited