repository provider using local (native) git commands
npm install local-repository-provider









repository provider using local (native) git commands
* LocalBranch
* Properties
* writeEntries
* Parameters
* commit
* Parameters
* entries
* Parameters
* entry
* Parameters
* maybeEntry
* Parameters
* Promise
* LocalProvider
* Properties
* newWorkspacePath
* Parameters
* branches
* Parameters
* repositories
* Parameters
* repository
* Parameters
* name
* attributes
* LocalRepository
* Properties
* setCurrentBranch
* Parameters
* refId
* Parameters
* initializeBranches
* workspace
Extends Branch
* workspace string
Writes ContentEntries into the branch
#### Parameters
* entries Array\
Returns Promise<Array\
Executes:
* writes all updates into the workspace
* git add
* git commit
* git push --set-upstream origin
#### Parameters
* message string commit message
* entries Array\
* options Object (optional, default {push:true})
* options.push boolean exec push after commit
Deliver all matchine entires for a given pattern.
#### Parameters
matchingPatterns (Array<string> | string) (optional, default ["/"])
Returns AsyncGenerator\
Search for path in the branch.
#### Parameters
* name string
Returns Promise\
Search for path in the branch.
#### Parameters
* name string
Returns Promise<(ContentEntry | undefined)> matching branch path names
Type: Promise\
Extends SingleGroupProvider
Provider using native git executable.
Known environment variables.
* GIT\_CLONE\_OPTIONS
* workspace string
Generate path for a new workspace.
For the livetime of the provider always genrate new names
#### Parameters
* name string
Returns string path
List branches for a given set of patterns.
Only delivers branches for valid complete git urls.
#### Parameters
* patterns (string | Array<string>)
List repositories for a given set of patterns.
Only delivers repositories for valid complete git urls.
#### Parameters
* patterns (Array<string> | string)?
Using provider workspace and number of repositories to create repository workspace.
#### Parameters
* name string
* workspace string? where to place the repos workspace
We are called local.
Returns string local
Default configuration options.
* workspace
* cloneOptions defaults to \["--depth", "8", "--no-single-branch"]
Returns Object
Extends Repository
* workspace string
* currentBranch Branch
Set the current active branch (workspace)
#### Parameters
* branch Branch
Get sha of a ref
Calls
#### Parameters
* ref string
Returns Promise<string> sha of the ref
build lookup of all remote branches
`sh`
git ls-remote --heads
workspace directory.
Returns string
With npm do:
`shell``
npm install local-repository-provider
BSD-2-Clause