gitconfiglocal

WebJar for gitconfiglocal

Лицензия

Лицензия

BSD
Категории

Категории

config Библиотеки уровня приложения Configuration
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

gitconfiglocal
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

gitconfiglocal
WebJar for gitconfiglocal
Ссылка на сайт

Ссылка на сайт

https://www.webjars.org
Система контроля версий

Система контроля версий

https://github.com/soldair/node-gitconfiglocal

Скачать gitconfiglocal

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gitconfiglocal/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gitconfiglocal</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gitconfiglocal/
implementation 'org.webjars.npm:gitconfiglocal:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/gitconfiglocal/
implementation ("org.webjars.npm:gitconfiglocal:1.0.0")
'org.webjars.npm:gitconfiglocal:jar:1.0.0'
<dependency org="org.webjars.npm" name="gitconfiglocal" rev="1.0.0">
  <artifact name="gitconfiglocal" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gitconfiglocal', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "gitconfiglocal" % "1.0.0"
[org.webjars.npm/gitconfiglocal "1.0.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : ini jar [1.3.2,2)

Модули Проекта

Данный проект не имеет модулей.

Build Status

gitconfiglocal

parse the .git/config file into a useful data structure

example

  • search config in $GIT_DIR (.git by default)
var gitconfig = require('gitconfiglocal');

gitconfig('./',function(err,config){
  console.log(config);
  /* prints:
  { core:
     { repositoryformatversion: '0',
       filemode: true,
       bare: false,
       logallrefupdates: true },
    remote:
     { origin:
        { url: 'git@github.com:soldair/node-gitconfiglocal.git',
          fetch: '+refs/heads/*:refs/remotes/origin/*' } } }
  */
});
  • specify $GIT_DIR via options:
gitconfig('./', { gitDir: 'path/to/gitdir' }, cb);

Версии библиотеки

Версия
1.0.0