1. 18 May, 2013 1 commit
  2. 16 May, 2013 2 commits
    • 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
  3. 15 May, 2013 1 commit
  4. 11 May, 2013 1 commit
  5. 23 Apr, 2013 1 commit
  6. 15 Apr, 2013 4 commits
  7. 10 Apr, 2013 1 commit
  8. 09 Apr, 2013 3 commits
  9. 07 Apr, 2013 2 commits
    • examples: a test, for rev-list · 2e233285
      This test file could probably be improved by a framework like
      the one in git.git:t/, or by using a language like Python instead
      of shell.
      
      The other examples would benefit from tests too.  Probably best
      to settle on a framework to write them in, then add more tests.
      
      Signed-off-by: Greg Price <price@mit.edu>
      Greg Price committed
    • examples: rev-list · 8f7f5e55
      This demonstrates parts of the interface for specifying revisions that
      Git users are familiar with from 'git rev-list', 'git log', and other
      Git commands.  A similar query interface is used in out-of-core
      command-line programs that browse a Git repo (like 'tig'), and may be
      useful for an 'advanced search' interface in GUI or web applications.
      
      In this version, we parse all the query modifiers we can support with
      the existing logic in revwalk: basic include/exclude commits, and the
      ordering flags.  More logic will be required to support '--grep',
      '--author', the pickaxe '-S', etc.
      
      Signed-off-by: Greg Price <price@mit.edu>
      Greg Price committed
  10. 04 Apr, 2013 1 commit
  11. 20 Mar, 2013 1 commit
  12. 02 Mar, 2013 1 commit
  13. 26 Feb, 2013 1 commit
  14. 15 Feb, 2013 1 commit
  15. 06 Feb, 2013 1 commit
  16. 05 Feb, 2013 1 commit
  17. 31 Jan, 2013 1 commit
  18. 23 Jan, 2013 2 commits
  19. 10 Jan, 2013 1 commit
  20. 02 Jan, 2013 2 commits
  21. 29 Dec, 2012 1 commit
    • Update showindex example · dbc4aa07
      I find the showindex example to be pretty useful on occasion, but
      there were are couple of output tweaks I wanted, plus I wanted the
      ability to specify a path to an actual index file instead of having
      to open the whole repository.  This makes those changes and expands
      the example slightly.
      Russell Belfer committed
  22. 27 Dec, 2012 1 commit
  23. 21 Dec, 2012 1 commit
  24. 20 Dec, 2012 2 commits
  25. 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
  26. 16 Dec, 2012 1 commit
  27. 14 Dec, 2012 2 commits
  28. 13 Dec, 2012 2 commits