make collection xref for git help
This commit is contained in:
@@ -48,14 +48,14 @@ Calls @racket[git], displays its result in a compact human-readable form, and re
|
||||
(git 'help 'restore)
|
||||
]
|
||||
|
||||
Help uses Racket's installed-documentation cross-reference database. It resolves the documented binding for the requested command through @racketmodname[setup/xref] and @racketmodname[scribble/xref], then opens the path and anchor recorded by @exec{raco setup}. No documentation directory is guessed or constructed by @racketmodname[git]. If the binding is not indexed, @racket[git-help] reports that @exec{raco setup git} should be run.
|
||||
Help uses Racket's installed-documentation cross-reference database. It builds a fresh collection xref for each help request, resolves the documented binding through @racketmodname[setup/xref] and @racketmodname[scribble/xref], then opens the path and anchor recorded by @exec{raco setup}. This means a newly run @exec{raco setup git} is visible immediately in the same DrRacket session. No documentation directory is guessed or constructed by @racketmodname[git]. If the binding is not indexed, @racket[git-help] reports that @exec{raco setup git} should be run.
|
||||
|
||||
@section[#:tag "version"]{Version}
|
||||
|
||||
@defproc[(git-version) string?]{Returns the package version from @tt{info.rkt}. The command form is @racket[(git 'version)]. The version is not duplicated in @tt{main.rkt}; @tt{info.rkt} is the single source of truth.}
|
||||
|
||||
@racketblock[
|
||||
(git 'version) ; => "0.2.15"
|
||||
(git 'version) ; => "0.2.16"
|
||||
]
|
||||
|
||||
@section[#:tag "repository"]{Repository}
|
||||
|
||||
Reference in New Issue
Block a user