npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

local-repository-provider

6.4.0 • Public • Published

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

optionsFromEnvironment

  • GIT_CLONE_OPTIONS

Parameters

  • env

defaultOptions

Default configuration options

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

Returns Object

LocalRepository

Extends Repository

Properties

_initialize

exec git clone or git pull

Parameters

initializeBranches

build lookup of all remote branches

git ls-remote --heads

condensedName

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

Returns string name

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 Entry into the branch

Parameters

Returns Promise<Array<Entry>> written entries

commit

Excutes:

  • writes all updates into the workspace
  • git add
  • git commit
  • git push

Parameters

  • message string commit message
  • entries Array<Entry> 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

  • name

Returns Entry matching branch path names

install

With npm do:

npm install local-repository-provider

license

BSD-2-Clause

install

npm i local-repository-provider

Downloadsweekly downloads

549

version

6.4.0

license

BSD-2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability