repository provider using local (native) git commands
Extends Branch
-
workspace
string
Writes ContentEntries into the branch
-
entries
Array<ContentEntry>
Returns Promise<Array<ContentEntry>> written entries
Executes:
- writes all updates into the workspace
- git add
- git commit
- git push --set-upstream origin
-
message
string commit message -
entries
Array<ContentEntry> file entries to be commited -
options
Object (optional, default{push:true}
)-
options.push
boolean exec push after commit
-
Deliver all matchine entires for a given pattern.
Returns AsyncGenerator<ContentEntry> matching branch path names
Search for path in the branch.
-
name
string
Returns Promise<ContentEntry> matching branch path names
Search for path in the branch.
-
name
string
Returns Promise<(ContentEntry | undefined)> matching branch path names
Type: Promise<void>
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
-
name
string
Returns string path
List branches for a given set of patterns. Only delivers branches for valid complete git urls.
List repositories for a given set of patterns. Only delivers repositories for valid complete git urls.
Using provider workspace and number of repositories to create repository 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)
-
branch
Branch
Get sha of a ref Calls
git show-ref <ref>
-
ref
string
Returns Promise<string> sha of the ref
build lookup of all remote branches
git ls-remote --heads
workspace directory.
Returns string
With npm do:
npm install local-repository-provider
BSD-2-Clause