config functionality extended
This commit is contained in:
@@ -94,7 +94,10 @@ Provides a Racket-oriented interface to @tt{git config}. The same interface is
|
||||
available through @racket[git] with command @racket['config].
|
||||
|
||||
@racketblock[
|
||||
(git 'config '--all)
|
||||
(git 'config 'get '--all)
|
||||
(git 'config '--global 'get '--all)
|
||||
(git 'config 'get '--global '--all)
|
||||
]
|
||||
|
||||
returns all visible configuration entries as key/value items:
|
||||
@@ -122,11 +125,13 @@ Configuration values can be written with @racket['set!]:
|
||||
|
||||
@racketblock[
|
||||
(git 'config 'set! "user.email" "hans@example.invalid")
|
||||
(git 'config '--global 'set! "user.email" "hans@example.invalid")
|
||||
(git 'config 'set! '--global "user.email" "hans@example.invalid")
|
||||
]
|
||||
|
||||
The optional write scope can be @tt{--global}, @tt{--local}, or @tt{--system}.
|
||||
A successful write returns @racket[#t].
|
||||
The optional scope can be @tt{--global}, @tt{--local}, or @tt{--system}. It may
|
||||
appear directly after @racket['config] or directly after @racket['get] /
|
||||
@racket['set!]. A successful write returns @racket[#t].
|
||||
}
|
||||
|
||||
@defproc[(git-branch [argument any/c] ...) boolean?]{
|
||||
|
||||
Reference in New Issue
Block a user