1. 07 May, 2013 2 commits
  2. 21 Apr, 2013 1 commit
  3. 20 Apr, 2013 1 commit
  4. 09 Mar, 2013 1 commit
  5. 29 Jan, 2013 1 commit
  6. 25 Jan, 2013 2 commits
  7. 06 Jan, 2013 1 commit
  8. 03 Jan, 2013 3 commits
  9. 05 Dec, 2012 1 commit
  10. 30 Nov, 2012 1 commit
  11. 27 Nov, 2012 1 commit
  12. 18 Nov, 2012 2 commits
  13. 13 Nov, 2012 4 commits
  14. 09 Nov, 2012 2 commits
  15. 30 Oct, 2012 1 commit
    • Add git_config_refresh() API to reload config · 744cc03e
      This adds a new API that allows users to reload the config if the
      file has changed on disk.  A new config callback function to
      refresh the config was added.
      
      The modified time and file size are used to test if the file needs
      to be reloaded (and are now stored in the disk backend object).
      
      In writing tests, just using mtime was a problem / race, so I
      wanted to check file size as well.  To support that, I extended
      `git_futils_readbuffer_updated` to optionally check file size in
      addition to mtime, and I added a new function `git_filebuf_stats`
      to fetch the mtime and size for an open filebuf (so that the
      config could be easily refreshed after a write).
      
      Lastly, I moved some similar file checking code for attributes
      into filebuf.  It is still only being used for attrs, but it
      seems potentially reusable, so I thought I'd move it over.
      Russell Belfer committed
  16. 25 Oct, 2012 2 commits
  17. 23 Oct, 2012 2 commits
  18. 12 Aug, 2012 1 commit
  19. 04 Aug, 2012 1 commit
    • Update iterators for consistency across library · 5dca2010
      This updates all the `foreach()` type functions across the library
      that take callbacks from the user to have a consistent behavior.
      The rules are:
      
      * A callback terminates the loop by returning any non-zero value
      * Once the callback returns non-zero, it will not be called again
        (i.e. the loop stops all iteration regardless of state)
      * If the callback returns non-zero, the parent fn returns GIT_EUSER
      * Although the parent returns GIT_EUSER, no error will be set in
        the library and `giterr_last()` will return NULL if called.
      
      This commit makes those changes across the library and adds tests
      for most of the iteration APIs to make sure that they follow the
      above rules.
      Russell Belfer committed
  20. 21 Jul, 2012 2 commits
  21. 11 Jul, 2012 1 commit
    • Adding git_config_foreach_match() iteration fn · b3ff1dab
      Adding a new config iteration function that let's you iterate
      over just the config entries that match a particular regular
      expression.  The old foreach becomes a simple use of this with
      an empty pattern.
      
      This also fixes an apparent bug in the existing `git_config_foreach`
      where returning a non-zero value from the iteration callback was
      not correctly aborting the iteration and the returned value was
      not being propogated back to the caller of foreach.
      
      Added to tests to cover all these changes.
      Russell Belfer committed
  22. 13 Jun, 2012 2 commits
  23. 17 May, 2012 3 commits
  24. 02 May, 2012 1 commit
  25. 25 Apr, 2012 1 commit