1. 07 Apr, 2015 1 commit
  2. 19 Mar, 2015 1 commit
  3. 08 May, 2014 1 commit
    • examples: add a basic for-each-ref example · 56ec2256
      This is quite close to running "git for-each-ref" except:
      
        1. It does not take any formatting or selection options at
           all.
      
        2. The output is not sorted.
      
      I wrote it to look at debugging some issues with ref
      iteration, but there's no reason it can't live on as an
      example command.
      Jeff King committed
  4. 05 Mar, 2014 1 commit
  5. 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
  6. 09 Oct, 2013 1 commit
  7. 16 Sep, 2013 1 commit
  8. 16 Aug, 2013 1 commit
  9. 10 Jul, 2013 2 commits
  10. 20 Jun, 2013 1 commit
  11. 16 May, 2013 1 commit
    • Add cat-file example and increase const use in API · 58206c9a
      This adds an example implementation that emulates git cat-file.
      It is a convenient and relatively simple example of getting data
      out of a repository.
      
      Implementing this also revealed that there are a number of APIs
      that are still not using const pointers to objects that really
      ought to be.  The main cause of this is that `git_vector_bsearch`
      may need to call `git_vector_sort` before doing the search, so a
      const pointer to the vector is not allowed.  However, for tree
      objects, with a little care, we can ensure that the vector of
      tree entries is always sorted and allow lookups to take a const
      pointer.  Also, the missing const in commit objects just looks
      like an oversight.
      Russell Belfer committed
  12. 09 Apr, 2013 1 commit
  13. 17 Dec, 2012 1 commit
    • Fix diff constructor name order confusion · 56c72b75
      The diff constructor functions had some confusing names, where the
      "old" side of the diff was coming after the "new" side.  This
      reverses the order in the function name to make it less confusing.
      
      Specifically...
      
      * git_diff_index_to_tree becomes git_diff_tree_to_index
      * git_diff_workdir_to_index becomes git_diff_index_to_workdir
      * git_diff_workdir_to_tree becomes git_diff_tree_to_workdir
      Russell Belfer committed
  14. 01 Nov, 2012 1 commit
  15. 02 Mar, 2012 2 commits
    • Continue implementation of git-diff · a2e895be
      * Implemented git_diff_index_to_tree
      * Reworked git_diff_options structure to handle more options
      * Made most of the options in git_diff_options actually work
      * Reorganized code a bit to remove some redundancy
      * Added option parsing to examples/diff.c to test most options
      Russell Belfer committed
    • Clean up diff implementation for review · 3a437590
      This fixes several bugs, updates tests and docs, eliminates the
      FILE* assumption in favor of printing callbacks for the diff patch
      formatter helpers, and adds a "diff" example function that can
      perform a diff from the command line.
      Russell Belfer committed
  16. 16 Sep, 2011 1 commit
  17. 13 Sep, 2011 1 commit
  18. 15 Jun, 2011 1 commit