simple-git
Advanced tools
Comparing version 3.18.0 to 3.19.0
@@ -0,1 +1,2 @@ | ||
import { pathspec } from './args/pathspec'; | ||
import { GitConstructError } from './errors/git-construct-error'; | ||
@@ -11,2 +12,2 @@ import { GitError } from './errors/git-error'; | ||
import { ResetMode } from './tasks/reset'; | ||
export { CheckRepoActions, CleanOptions, GitConfigScope, GitConstructError, GitError, GitPluginError, GitResponseError, ResetMode, TaskConfigurationError, grepQueryBuilder, }; | ||
export { CheckRepoActions, CleanOptions, GitConfigScope, GitConstructError, GitError, GitPluginError, GitResponseError, ResetMode, TaskConfigurationError, grepQueryBuilder, pathspec, }; |
@@ -13,2 +13,3 @@ export type { RemoteWithoutRefs, RemoteWithRefs } from '../src/lib/responses/GetRemoteSummary'; | ||
export { pathspec } from '../src/lib/args/pathspec'; | ||
export type { ApplyOptions } from '../src/lib/tasks/apply-patch'; | ||
@@ -15,0 +16,0 @@ export { CheckRepoActions } from '../src/lib/tasks/check-is-repo'; |
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "3.18.0", | ||
"version": "3.19.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -24,3 +24,2 @@ "contributors": [ | ||
"@simple-git/babel-config": "^1.0.0", | ||
"@simple-git/test-utils": "^4.0.0", | ||
"@types/debug": "^4.1.5", | ||
@@ -27,0 +26,0 @@ "@types/jest": "^29.2.2", |
@@ -691,6 +691,8 @@ # Simple Git | ||
```typescript | ||
import { simpleGit, pathspec } from "simple-git"; | ||
const git = simpleGit(); | ||
const wholeRepoStatus = await git.status(); | ||
const subDirStatusUsingOptArray = await git.status(['--', 'sub-dir']); | ||
const subDirStatusUsingOptObject = await git.status({ '--': null, 'sub-dir': null }); | ||
const subDirStatusUsingOptArray = await git.status([pathspec('sub-dir')]); | ||
const subDirStatusUsingOptObject = await git.status({ 'sub-dir': pathspec('sub-dir') }); | ||
``` | ||
@@ -697,0 +699,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
877401
10
108
10686
832