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
|`.add([fileA, ...], handlerFn)`| adds one or more files to be under source control |
191
191
|`.addAnnotatedTag(tagName, tagMessage, handlerFn)`| adds an annotated tag to the head of the current branch |
192
192
|`.addTag(name, handlerFn)`| adds a lightweight tag to the head of the current branch |
@@ -201,7 +201,7 @@ For type details of the response for each of the tasks, please see the [TypeScri
201
201
|`.fetch([options, ] handlerFn)`| update the local working copy database with changes from the default remote repo and branch, when supplied the options argument can be a standard [options object](#how-to-specify-options) either an array of string commands as supported by the [git fetch](https://git-scm.com/docs/git-fetch). |
202
202
|`.fetch(remote, branch, handlerFn)`| update the local working copy database with changes from a remote repo |
203
203
|`.fetch(handlerFn)`| update the local working copy database with changes from the default remote repo and branch |
204
-
|`.outputHandler(handlerFn)`| attaches a handler that will be called with the name of the command being run and the `stdout` and `stderr`[readable streams](https://nodejs.org/api/stream.html#stream_class_stream_readable) created by the [child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess) running that command|
204
+
|`.outputHandler(handlerFn)`| attaches a handler that will be called with the name of the command being run and the `stdout` and `stderr`[readable streams](https://nodejs.org/api/stream.html#stream_class_stream_readable) created by the [child process](https://nodejs.org/api/child_process.html#child_process_class_childprocess) running that command, see [examples](https://github.com/steveukx/git-js/blob/main/examples/git-output-handler.md)|
205
205
|`.raw(args, [handlerFn])`| Execute any arbitrary array of commands supported by the underlying git binary. When the git process returns a non-zero signal on exit and it printed something to `stderr`, the command will be treated as an error, otherwise treated as a success. |
206
206
|`.rebase([options,] handlerFn)`| Rebases the repo, `options` should be supplied as an array of string parameters supported by the [git rebase](https://git-scm.com/docs/git-rebase) command, or an object of options (see details below for option formats). |
207
207
|`.revert(commit , [options , [handlerFn]])`| reverts one or more commits in the working copy. The commit can be any regular commit-ish value (hash, name or offset such as `HEAD~2`) or a range of commits (eg: `master~5..master~2`). When supplied the [options](#how-to-specify-options) argument contain any options accepted by [git-revert](https://git-scm.com/docs/git-revert). |
0 commit comments