1. 19 Sep, 2013 1 commit
  2. 17 Sep, 2013 1 commit
    • Merge git_buf and git_buffer · a9f51e43
      This makes the git_buf struct that was used internally into an
      externally available structure and eliminates the git_buffer.
      
      As part of that, some of the special cases that arose with the
      externally used git_buffer were blended into the git_buf, such as
      being careful about git_buf objects that may have a NULL ptr and
      allowing for bufs with a valid ptr and size but zero asize as a
      way of referring to externally owned data.
      Russell Belfer committed
  3. 07 Sep, 2013 6 commits
  4. 05 Sep, 2013 1 commit
  5. 13 Aug, 2013 1 commit
  6. 12 Aug, 2013 2 commits
  7. 08 Aug, 2013 11 commits
  8. 07 Aug, 2013 1 commit
  9. 01 Jul, 2013 1 commit
  10. 24 May, 2013 1 commit
  11. 11 May, 2013 1 commit
  12. 21 Apr, 2013 1 commit
  13. 20 Apr, 2013 1 commit
  14. 29 Jan, 2013 1 commit
    • Implement config key validation rules · 1e7799e8
      This is a new implementation of core git's config key checking
      rules that prevents non-alphanumeric characters (and '-') for
      the top-level section and key names inside of config files.
      
      This also validates the target section name when renaming
      sections.
      Russell Belfer committed
  15. 25 Jan, 2013 1 commit
  16. 08 Jan, 2013 1 commit
  17. 30 Nov, 2012 1 commit
  18. 28 Nov, 2012 1 commit
    • Consolidate text buffer functions · 7bf87ab6
      There are many scattered functions that look into the contents of
      buffers to do various text manipulations (such as escaping or
      unescaping data, calculating text stats, guessing if content is
      binary, etc).  This groups all those functions together into a
      new file and converts the code to use that.
      
      This has two enhancements to existing functionality.  The old
      text stats function is significantly rewritten and the BOM
      detection code was extended (although largely we can't deal with
      anything other than a UTF8 BOM).
      Russell Belfer committed
  19. 27 Nov, 2012 1 commit
  20. 26 Nov, 2012 1 commit
  21. 23 Nov, 2012 1 commit
  22. 13 Nov, 2012 1 commit
  23. 08 Nov, 2012 1 commit
  24. 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