Skip to content
repository provider using local (native) git commands
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
package.json

README.md

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Known Vulnerabilities GitHub Issues Dependency Status devDependency Status docs downloads Commitizen friendly

local-repository-provider

repository provider using local (native) git commands

API

Table of Contents

LocalProvider

Extends Provider

Provider using native git executable

Properties

newWorkspacePath

Generate path for a new workspace For the livetime of the provider always genrate new names

Returns string path

repository

using provider workspace and number of repositories to create repository workspace

Parameters

  • name string
  • workspace string where to place the repos workspace @see #newWorkspacePath

environmentOptions

  • GIT_CLONE_OPTIONS

defaultOptions

Default configuration options

  • workspace
  • cloneOptions defaults to ["--depth", "10", "--no-single-branch"]

Returns Object

LocalRepository

Extends Repository

Properties

  • workspace string
  • currentBranch Branch

_initialize

exec git clone or git pull

_fetchBranches

build lookup of all remote branches

git ls-remote --heads

condensedName

most significant part of the url remove trailing .git only use last directory of pathname

Returns string name

setCurrentBranch

Set the current active branch (workspace)

Parameters

  • branch Branch

refId

Get sha of a ref Calls

git show-ref <ref>

Parameters

Returns string sha of the ref

workspace

workspace directory.

Returns string

LocalBranch

Extends Branch

Properties

writeEntries

writes ContentEntries into the branch

Parameters

  • entries Array<ContentEntry>

Returns Promise<Array<ContentEntry>> written entries

commit

Excutes:

  • writes all updates into the workspace
  • git add
  • git commit
  • git push --set-upstream origin

Parameters

  • message string commit message
  • entries Array<ContentEntry> file entries to be commited
  • options Object

entries

Search for patch in the branch

Parameters

  • matchingPatterns Array<string> (optional, default ["**/.*","**/*"])

Returns Iterable<Entry> matching branch path names

entry

Search for patch in the branch

Parameters

Returns Entry matching branch path names

maybeEntry

Search for patch in the branch

Parameters

Returns Entry matching branch path names

install

With npm do:

npm install local-repository-provider

license

BSD-2-Clause

You can’t perform that action at this time.