1. 26 Feb, 2022 1 commit
    • cli: infrastructure for a cli project · 3a3ab065
      Introduce a command-line interface for libgit2.  The goal is for it to
      be git-compatible.
      
      1. The libgit2 developers can more easily dogfood libgit2 to find bugs,
         and performance issues.
      
      2. There is growing usage of libgit2's examples as a client; libgit2's
         examples should be exactly that - simple code samples that illustrate
         libgit2's usage.  This satisfies that need directly.
      
      3. By producing a client ourselves, we can better understand the needs
         of client creators, possibly producing a shared "middleware" for
         commonly-used pieces of client functionality like interacting with
         external tools.
      
      4. Since git is the reference implementation, we may be able to benefit
         from git's unit tests, running their test suite against our CLI to
         ensure correct behavior.
      
      This commit introduces a simple infrastructure for the CLI.
      
      The CLI is currently links libgit2 statically; this is because the
      utility layer is required for libgit2 _but_ shares the error state
      handling with libgit2 itself.  There's no obviously good solution
      here without introducing annoying indirection or more complexity.
      Until we can untangle that dependency, this is a good step forward.
      
      In the meantime, we link the libgit2 object files, but we do not include
      the (private) libgit2 headers.  This constrains the CLI to the public
      libgit2 interfaces.
      Edward Thomson committed
  2. 23 Feb, 2022 12 commits
  3. 22 Feb, 2022 1 commit
  4. 21 Feb, 2022 4 commits
  5. 18 Feb, 2022 4 commits
  6. 17 Feb, 2022 1 commit
    • xdiff: use xdl_free not free · b722c45d
      We've added a lovely abstraction layer in xdiff so that it can call our
      allocation functions.  But it also needs to call our free functions.  We
      missed some `free` calls in `xmerge.c`.  Update them to use `xdl_free`.
      Without this, we will pass a pointer allocated with a custom allocator
      to the system free function.  💣
      Edward Thomson committed
  7. 14 Feb, 2022 4 commits
  8. 13 Feb, 2022 10 commits
  9. 12 Feb, 2022 3 commits