stdin processing for run-git
This commit is contained in:
@@ -49,3 +49,17 @@ Most are also exported as direct procedures such as `git-status`, `git-add`,
|
||||
`git-fetch`, `git-switch`, `git-tag`, `git-log`, `git-diff`, and `git-show`.
|
||||
|
||||
See the Scribble documentation for command-specific behavior and return values.
|
||||
|
||||
## Low-level Git execution
|
||||
|
||||
`run-git` can be used when direct access to Git's stdin/stdout protocol is
|
||||
needed. Optional text can be supplied to Git with `#:input`.
|
||||
|
||||
```racket
|
||||
(run-git '(credential fill)
|
||||
#:input "protocol=https\nhost=git.dijkewijk.nl\n\n")
|
||||
```
|
||||
|
||||
The result remains two values: Git's exit code and the ordered
|
||||
`(source line)` output items.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user