1. 08 Nov, 2014 1 commit
  2. 16 Sep, 2014 1 commit
  3. 25 Jan, 2014 1 commit
  4. 02 Nov, 2013 1 commit
  5. 01 Nov, 2013 1 commit
    • Make diff and status perform soft index reload · 4bf630b6
      This changes `git_index_read` to have two modes - a hard index
      reload that always resets the index to match the on-disk data
      (which was the old behavior) and a soft index reload that uses
      the timestamp / file size information and only replaces the index
      data if the file on disk has been modified.
      
      This then updates the git_status code to do a soft reload unless
      the new GIT_STATUS_OPT_NO_REFRESH flag is passed in.
      
      This also changes the behavior of the git_diff functions that use
      the index so that when an index is not explicitly passed in (i.e.
      when the functions call git_repository_index for you), they will
      also do a soft reload for you.
      
      This intentionally breaks the file signature of git_index_read
      because there has been some confusion about the behavior previously
      and it seems like all existing uses of the API should probably be
      examined to select the desired behavior.
      Russell Belfer committed
  6. 30 Oct, 2013 1 commit
  7. 17 Sep, 2013 1 commit
    • Some tests with ident and crlf filters · 37f9e409
      Fixed the filter order to match core Git, too.
      
      This test demonstrates an interesting behavior of core Git (which
      is totally reasonable and which libgit2 matches, although mostly
      by coincidence).  If you use the ident filter and commit a file
      with a garbage ident in it, like '$Id: this is just garbage$' and
      then immediately do a 'git checkout-index' with the new file, Git
      will not consider the file out of date and will not overwrite the
      file with an updated $Id$.  Libgit2 has the same behavior.  If you
      remove the file and then do a checkout-index, it will be replaced
      with a filtered version that has injected the OID correctly.
      Russell Belfer committed
  8. 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
  9. 01 Nov, 2012 1 commit
  10. 30 Oct, 2012 1 commit
  11. 15 Jun, 2011 1 commit
  12. 14 Jun, 2011 1 commit