Files
git-cli/scribblings/git.scrbl
T
2026-08-12 10:23:53 +02:00

28 lines
661 B
Racket

#lang scribble/manual
@(require (for-label racket/base git))
@title[#:tag "top"]{git}
@author{Hans Dijkema}
@defmodule[git]
The @racketmodname[git] module provides a small command-line-like Git interface implemented on top of the @tt{libgit2} package. It does not invoke the @tt{git} executable.
The short form is intended for build scripts and interactive use:
@racketblock[
(require git)
(git 'status)
(git 'diff)
(git 'diff '--cached)
(git 'add "main.rkt" "info.rkt")
(git 'restore '--staged "scratch.rkt")
(git 'reset 'HEAD "--" "main.rkt")
(git 'grep '-i '-n "todo")
(git 'commit "Implement raco support")
(git 'tag "v0.1")
(git 'checkout "main")
]