.checkIsRepo() updated to allow choosing the type of check to run, either by using the exported CheckRepoActions enum
or the text equivalents ('bare', 'root' or 'tree'):
checkIsRepo(CheckRepoActions.BARE): Promise<boolean> determines whether the working directory represents a bare repo.
checkIsRepo(CheckRepoActions.IS_REPO_ROOT): Promise<boolean> determines whether the working directory is at the root of a repo.
checkIsRepo(CheckRepoActions.IN_TREE): Promise<boolean> determines whether the working directory is a descendent of a git root.
.revparse() converted to a new style task
2.8.0 - Support for default import in TS without use of esModuleInterop
Enables support for using the default export of simple-git as an es module, in TypeScript it is no
longer necessary to enable the esModuleInterop flag in the tsconfig.json to consume the default
export.
2.7.2 - Bug Fix: Remove promise.ts source from simple-git published artifact
Closes #471, whereby the source for the promise wrapped runner would be included in the published artifact
due to sharing the same name as the explicitly included promise.js in the project root.
2.7.1 - Bug Fix: await git.log having imported from root simple-git
Fixes #464, whereby using await on git.log without having supplied a callback would ignore the leading options
object or options array.
2.7.0 - Output Handler and logging
Updated to the outputHandler type to add a trailing argument for the arguments passed into the child process.
All logging now uses the debug library. Enable logging by adding simple-git
to the DEBUG environment variable. git.silent(false) can still be used to explicitly enable logging and is
equivalent to calling require('debug').enable('simple-git').
TL;DR - .then and .catch can now be called on the standard simpleGit chain to handle the promise
returned by the most recently added task... essentially, promises now just work the way you would expect
them to.
The main export from simple-git no longer shows the deprecation notice for using the
.then function, it now exposes the promise chain generated from the most recently run
task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.
Promise / async interface and TypeScript types all available from the simple-git import rather than needing
simple-git/promise, see examples in the ReadMe or in the consumer tests.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps simple-git from 1.132.0 to 2.9.0.
Changelog
Sourced from simple-git's changelog.
Commits
da29fed
2.9.034f08ac
Merge branch 'feature/check-is-repo'dd4ab8d
Split consumer tsconfig for depending onsimple-git
andsimple-git/promise
d9959be
Remove unnecessary tsconfig settings367858b
Fix type-definition for rest arguments66c961a
Extend.checkIsRepo
to allow for checking whether the current working direc...cd4f16f
Moved argument to first placea05c74f
Added:cfdb2bc
Change log5ab92e2
2.8.0Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)