You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/git-grep.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## Git Grep
2
2
3
-
The official documentation for [git grep](https://git-scm.com/docs/git-grep) gives the full set of options that can be passed to the `simple-git``git.grep` method as [options](../readme.md#how-to-specify-options) (note that `-h` to hide the file name is disallowed).
3
+
The official documentation for [git grep](https://git-scm.com/docs/git-grep) gives the full set of options that can be passed to the `simple-git``git.grep` method as [options](https://github.com/steveukx/git-js/blob/main/readme.md#how-to-specify-options) (note that `-h` to hide the file name is disallowed).
4
4
5
5
The simplest version is to search with a single search token:
To build your own query instead of using the `grepQueryBuilder`, use the array form of [options](../readme.md#how-to-specify-options):
31
+
To build your own query instead of using the `grepQueryBuilder`, use the array form of [options](https://github.com/steveukx/git-js/blob/main/readme.md#how-to-specify-options):
Copy file name to clipboardExpand all lines: simple-git/CHANGELOG.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@
280
280
281
281
## 2.25.0 TypeScript Types & Unit Tests, Commit Parsing
282
282
283
-
- See [Legacy Node Versions](./docs/LEGACY_NODE_VERSIONS.md) for details of how to use `simple-git` with `node.js`
283
+
- See [Legacy Node Versions](https://github.com/steveukx/git-js/blob/main/docs/LEGACY_NODE_VERSIONS.md) for details of how to use `simple-git` with `node.js`
284
284
versions 11 and below.
285
285
- To help keep the TypeScript definitions in line with functionality, unit tests are now written in TypeScript.
286
286
- When using `git.commit`, the first argument must be a string or array of strings. Passing another data type has long
@@ -356,7 +356,7 @@
356
356
## 2.13.0 - Upgraded Pull & Merge and parser for Push
357
357
358
358
-`.push` and `.pushTags` rewritten as v2 style tasks. The git response is now parsed and returned as a
- Pull and merge rewritten to fit the TypeScript tasks style.
362
362
@@ -371,12 +371,12 @@
371
371
- until now, `simple-git` reject all pending tasks in the queue when a task has failed. From `2.11.0`, only
372
372
tasks chained from the failing one will be rejected, other tasks can continue to be processed as normal,
373
373
giving the developer more control over which tasks should be treated as atomic chains, and which can be
374
-
[run in parallel](./readme.md#concurrent--parallel-requests).
374
+
[run in parallel](https://github.com/steveukx/git-js/blob/main/readme.md#concurrent--parallel-requests).
375
375
376
376
To support this, and to prevent the issues seen when `git` is run concurrently in too many child processes,
377
377
`simple-git` will limit the number of tasks running in parallel at any one time to be at most 1 from each
378
378
chain (ie: chained tasks are still run in series) and at most 5 tasks across all chains (
379
-
[configurable](./readme.md#configuration) by passing `{maxConcurrentProcesses: x}` in the `simpleGit` constructor).
379
+
[configurable](https://github.com/steveukx/git-js/blob/main/readme.md#configuration) by passing `{maxConcurrentProcesses: x}` in the `simpleGit` constructor).
380
380
381
381
- add support to `git.status()` for parsing the response of a repo that has no commits yet, previously
- The main export from `simple-git` no longer shows the deprecation notice for using the
477
477
`.then` function, it now exposes the promise chain generated from the most recently run
478
478
task, allowing the combination of chain building and ad-hoc splitting off to a new promise chain.
479
-
- See the [unit](./test/unit/promises.spec.js) and [integration](./test/integration/promise-from-root.spec.js) tests.
480
-
- See the [typescript consumer](./test/consumer/ts-default-from-root.spec.ts) test.
479
+
- See the [unit](https://github.com/steveukx/git-js/blob/main/simple-git/test/unit/promises.spec.js) and [integration](https://github.com/steveukx/git-js/blob/main/simple-git/test/integration/promise-from-root.spec.js) tests.
480
+
- See the [typescript consumer](https://github.com/steveukx/git-js/blob/main/simple-git/test/consumer/ts-default-from-root.spec.ts) test.
481
481
482
482
### TypeScript Importing
483
483
484
484
- Promise / async interface and TypeScript types all available from the `simple-git` import rather than needing
485
-
`simple-git/promise`, see examples in the [ReadMe](./readme.md) or in the [consumer tests](./test/consumer).
485
+
`simple-git/promise`, see examples in the [ReadMe](https://github.com/steveukx/git-js/blob/main/readme.md) or in the [consumer tests](https://github.com/steveukx/git-js/blob/main/simple-git/test/consumer).
486
486
487
487
### Typed Errors
488
488
489
489
- Tasks that previously validated their usage and rejected with a `TypeError` will now reject with a
- Tasks that previously rejected with a custom object (currently only `git.merge` when the auto-merge fails)
493
-
will now reject with a [`GitResponseError`](./src/lib/errors/git-response-error.ts) where previously it
493
+
will now reject with a [`GitResponseError`](https://github.com/steveukx/git-js/blob/main/simple-git/src/lib/errors/git-response-error.ts) where previously it
494
494
was a modified `Error`.
495
495
496
496
### Git Clean
@@ -537,4 +537,4 @@ please only use the documented public API.
537
537
538
538
## v1 and below
539
539
540
-
Please see the [historical changelog](./docs/CHANGELOG-HISTORICAL.md);
540
+
Please see the [historical changelog](https://github.com/steveukx/git-js/blob/main/docs/CHANGELOG-HISTORICAL.md);
0 commit comments