GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — libgit2/examples at main · libgit2/libgit2

Expand file tree

/

examples

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

examples

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
CMakeLists.txt
CMakeLists.txt
 
 
COPYING
COPYING
 
 
README.md
README.md
 
 
add.c
add.c
 
 
args.c
args.c
 
 
args.h
args.h
 
 
blame.c
blame.c
 
 
cat-file.c
cat-file.c
 
 
checkout.c
checkout.c
 
 
clone.c
clone.c
 
 
commit.c
commit.c
 
 
common.c
common.c
 
 
common.h
common.h
 
 
config.c
config.c
 
 
describe.c
describe.c
 
 
diff.c
diff.c
 
 
fetch.c
fetch.c
 
 
for-each-ref.c
for-each-ref.c
 
 
general.c
general.c
 
 
index-pack.c
index-pack.c
 
 
init.c
init.c
 
 
lg2.c
lg2.c
 
 
log.c
log.c
 
 
ls-files.c
ls-files.c
 
 
ls-remote.c
ls-remote.c
 
 
merge.c
merge.c
 
 
push.c
push.c
 
 
rebase.c
rebase.c
 
 
remote.c
remote.c
 
 
rev-list.c
rev-list.c
 
 
rev-parse.c
rev-parse.c
 
 
show-index.c
show-index.c
 
 
stash.c
stash.c
 
 
status.c
status.c
 
 
tag.c
tag.c
 
 

README.md

libgit2 examples

These examples are a mixture of basic emulation of core Git command line functions and simple snippets demonstrating libgit2 API usage (for use with Docurium). As a whole, they are not vetted carefully for bugs, error handling, and cross-platform compatibility in the same manner as the rest of the code in libgit2, so copy with caution.

That being said, you are welcome to copy code from these examples as desired when using libgit2. They have been released to the public domain, so there are no restrictions on their use.

For annotated HTML versions, see the "Examples" section of:

https://libgit2.org/libgit2

such as:

https://libgit2.org/libgit2/ex/HEAD/general.html
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.