1. 04 Apr, 2011 1 commit
  2. 03 Apr, 2011 1 commit
  3. 02 Apr, 2011 4 commits
  4. 31 Mar, 2011 1 commit
  5. 30 Mar, 2011 8 commits
  6. 29 Mar, 2011 15 commits
  7. 28 Mar, 2011 6 commits
  8. 25 Mar, 2011 1 commit
    • New external API method: `git_reference_listcb` · 09e8de0f
      List all the references in the repository, calling a custom
      callback for each one.
      
      The listed references may be filtered by type, or using
      a bitwise OR of several types. Use the magic value
      `GIT_REF_LISTALL` to obtain all references, including
      packed ones.
      
      The `callback` function will be called for each of the references
      in the repository, and will receive the name of the reference and
      the `payload` value passed to this method.
      Vicent Marti committed
  9. 24 Mar, 2011 3 commits
    • index.h: Fix minor typo · 051d6915
      Jakob Pfender committed
    • index.h: Correct documentation for git_index_open_inrepo() · 12f6d8e1
      Fix the doxygen comments for git_index_open_inrepo(). Previously they
      referred to a param index_path and omitted index (probably a c&p
      error).
      Jakob Pfender committed
    • index.c: Read index after initialization · 3bdc0d4c
      The current behaviour of git_index_open{bare,inrepo}() is unexpected.
      When an index is opened, an in-memory index object is created that is
      linked to the index discovered by git_repository_open(). However, this
      index object is empty, as the on-disk index is not read. To fully open
      the on-disk index file, git_index_read() has to be called. This leads to
      confusing behaviour. Consider the following code:
      
      	git_index *idx;
      	git_index_open_inrepo(&idx, repo);
      	git_index_write(idx);
      
      You would expect this to have no effect, as the index is never
      ostensibly manipulated. However, what actually happens is that the index
      entries are removed from the on-disk index because the empty in-memory
      index object created by open_inrepo() is written back to the disk.
      
      This patch reads the index after opening it.
      Jakob Pfender committed