MCPcopy Create free account
hub / github.com/angular/dev-infra / isShallowRepo

Method isShallowRepo

ng-dev/utils/git/git-client.ts:151–153  ·  view source on GitHub ↗

Whether the local repository is configured as shallow.

()

Source from the content-addressed store, hash-verified

149
150 /** Whether the local repository is configured as shallow. */
151 isShallowRepo(): boolean {
152 return this.run(['rev-parse', '--is-shallow-repository']).stdout.trim() === 'true';
153 }
154
155 /** Gets the currently checked out branch or revision. */
156 getCurrentBranchOrRevision(): string {

Callers 2

mergeMethod · 0.80

Calls 1

runMethod · 0.95

Tested by

no test coverage detected