Skip to content

Repository files navigation

git-client

A git client written in C.

Requirements

  • A C11 compiler (cc/gcc/clang)
  • make
  • clang-format (optional, for make fmt)

Build & run

make build              # compile to build/jg
make run                # build and run
make run ARGS="status"  # pass arguments

Development

make fmt        # format sources
make fmt-check  # verify formatting
make tidy       # clang-tidy
make clean      # remove build/
make help       # list targets

Layout

main.c              entry point
object.c / .h       object store (blob, tree, commit)
sha1.c / .h         SHA-1 hashing
zlib_wrap.c / .h    zlib compression wrappers
tests/              tests

About

totally personal git client

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages