1. 15 Nov, 2021 1 commit
  2. 06 Nov, 2019 1 commit
  3. 05 Jul, 2019 1 commit
  4. 15 Feb, 2019 1 commit
    • examples: create common lg2 executable · ead10785
      Inside of our networking example code, we have a git2 executable
      that acts as an entry point to all the different network
      examples. As such, it is kind of the same like the normal git(1)
      executable in that it simply arbitrates to the respective
      subcommands.
      
      Let's extend this approach and merge all examples into a single
      standalone lg2 executable. Instead of building an executable
      for all the existing examples we have, we now bundle them all
      inside of the lg2 one and let them be callable via subcommands.
      
      In the process, we can get rid of duplicated library
      initialization, deinitialization and repository discovery code.
      Instead of having each subcommand handle these on its own, we
      simply do it inside of the single main function now.
      Patrick Steinhardt committed
  5. 25 Jun, 2015 1 commit
  6. 22 Jun, 2015 1 commit
  7. 08 Nov, 2014 1 commit
  8. 22 May, 2014 1 commit
  9. 01 May, 2014 1 commit
  10. 01 Apr, 2014 1 commit
  11. 25 Mar, 2014 1 commit
    • Make submodules externally refcounted · a15c7802
      `git_submodule` objects were already refcounted internally in case
      the submodule name was different from the path at which it was
      stored.  This makes that refcounting externally used as well, so
      `git_submodule_lookup` and `git_submodule_add_setup` return an
      object that requires a `git_submodule_free` when done.
      Russell Belfer committed
  12. 03 Nov, 2013 1 commit
    • examples: doc update · becb13c0
      Update the explanation to reflect our use of git_status_list_new() and
      make the breaks in rocco more meaningful.
      
      Clarify why GIT_STATUS_CURRENT and index_to_workdir don't always imply
      each other. Fixes #1740.
      Carlos Martín Nieto committed
  13. 02 Nov, 2013 1 commit
  14. 31 Oct, 2013 1 commit
  15. 30 Oct, 2013 1 commit
    • Extract common example helpers and reorg examples · 66902d47
      This reorganizes a few of the examples so that the main function
      comes first with the argument parsing extracted into a helper
      that can come at the end of the file (so the example focuses more
      on the use of libgit2 instead of command line support).  This also
      creates a shared examples/common.[ch] so that useful helper funcs
      can be shared across examples instead of repeated.
      Russell Belfer committed
  16. 17 Sep, 2013 1 commit
    • No such thing as an orphan branch · 605da51a
      Unfortunately git-core uses the term "unborn branch" and "orphan
      branch" interchangeably. However, "orphan" is only really there for
      the checkout command, which has the `--orphan` option so it doesn't
      actually create the branch.
      
      Branches never have parents, so the distinction of a branch with no
      parents is odd to begin with. Crucially, the error messages deal with
      unborn branches, so let's use that.
      Carlos Martín Nieto committed
  17. 20 Jun, 2013 4 commits