Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Add a docstring (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Mar 23, 2021
1 parent 8a36044 commit ecf284a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/git.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
"""
git()
Return a `Cmd` for running Git.
## Example
```julia
julia> run(`$(git())` clone https://github.com/JuliaVersionControl/GitCommand.jl)
```
"""
function git(; adjust_PATH::Bool = true, adjust_LIBPATH::Bool = true)
@static if Sys.iswindows()
return Git_jll.git(; adjust_PATH, adjust_LIBPATH)::Cmd
Expand Down

0 comments on commit ecf284a

Please sign in to comment.