Upgrade to Pro — share decks privately, control downloads, hide ads and more …

libgit2 lighting talk

libgit2 lighting talk

Lighting talk I prepared for FSCONS 2014

Avatar for Carlos Martín Nieto

Carlos Martín Nieto

November 01, 2014

More Decks by Carlos Martín Nieto

Other Decks in Programming

Transcript

  1. What is it? • An implementation of the core Git

    methods • Portable C (even MSVC understands it) • Zero dependencies (except for network)
  2. Why? • You can shell out to git • But

    you then have to parse text • Coarse API • Some parts aren’t machine-readable
  3. Where’s libgit1? • git itself has libgit.a for sharing code

    • Doesn’t free memory • Dies on many errors • Assumes it’s a single-threaded program working on one repository