stdin processing for run-git

This commit is contained in:
2026-08-13 14:48:52 +02:00
parent 2d0aae1f87
commit 405c17c9f6
3 changed files with 40 additions and 3 deletions
+14
View File
@@ -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.