Skip to content

Commit

Permalink
Minor paragraph edit from code modification.
Browse files Browse the repository at this point in the history
Parts of the paragraph referencing lines from code changed.
  • Loading branch information
pauljoohyunkim committed Aug 20, 2023
1 parent bd56fcc commit e938e16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion book/B-embedding-git/sections/libgit2.asc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ int main()
}
----

The first couple of lines open a Git repository.
The first line in the main function initializes the global state for using libgit2 library functions.
The next couple of lines open a Git repository.
The `git_repository` type represents a handle to a repository with a cache in memory.
This is the simplest method, for when you know the exact path to a repository's working directory or `.git` folder.
There's also the `git_repository_open_ext` which includes options for searching, `git_clone` and friends for making a local clone of a remote repository, and `git_repository_init` for creating an entirely new repository.
Expand Down

0 comments on commit e938e16

Please sign in to comment.