1. 31 Dec, 2015 2 commits
  2. 13 Feb, 2015 1 commit
  3. 10 Aug, 2014 1 commit
  4. 20 May, 2014 1 commit
  5. 16 May, 2014 1 commit
  6. 02 May, 2014 1 commit
  7. 16 Feb, 2014 1 commit
    • Check for EWOULDBLOCK as well as EAGAIN on write. · 0197d410
      On some systems, notably HP PA-RISC systems running Linux or HP-UX,
      EWOULDBLOCK and EAGAIN are not the same value.  POSIX (and these OSes) allow
      EWOULDBLOCK to occur on write(2) (and send(2), etc.), so check explicitly
      for this case as well as EAGAIN by defining and using a macro GIT_ISBLOCKED
      that considers both.
      
      The macro is necessary because MSYS does not provide EWOULDBLOCK and
      compilation fails if an attempt is made to use it unconditionally.  On most
      systems, where the two values are the same, the compiler will simply
      optimize this check out and it will have no effect.
      brian m. carlson committed
  8. 11 Dec, 2013 1 commit
    • Test cancel from indexer progress callback · 7697e541
      This adds tests that try canceling an indexer operation from
      within the progress callback.
      
      After writing the tests, I wanted to run this under valgrind and
      had a number of errors in that situation because mmap wasn't
      working.  I added a CMake option to force emulation of mmap and
      consolidated the Amiga-specific code into that new place (so we
      don't actually need separate Amiga code now, just have to turn on
      -DNO_MMAP).
      
      Additionally, I made the indexer code propagate error codes more
      reliably than it used to.
      Russell Belfer committed
  9. 23 Jun, 2013 1 commit
  10. 16 Feb, 2013 1 commit
  11. 08 Jan, 2013 1 commit
  12. 07 Nov, 2012 1 commit
  13. 22 Jun, 2012 1 commit
  14. 08 May, 2012 1 commit
  15. 07 May, 2012 1 commit
  16. 17 Apr, 2012 1 commit
  17. 15 Mar, 2012 1 commit
    • Continue error conversion · deafee7b
      This converts blob.c, fileops.c, and all of the win32 files.
      Also, various minor cleanups throughout the code.  Plus, in
      testing the win32 build, I cleaned up a bunch (although not
      all) of the warnings with the 64-bit build.
      Russell Belfer committed
  18. 09 Mar, 2012 1 commit
    • error-handling: On-disk config file backend · dda708e7
      Includes:
      
      	- Proper error reporting when encountering syntax errors in a
      	config file (file, line number, column).
      
      	- Rewritten `config_write`, now with 99% less goto-spaghetti
      
      	- Error state in `git_filebuf`: filebuf write functions no longer
      	need to be checked for error returns. If any of the writes performed
      	on a buffer fail, the last call to `git_filebuf_commit` or
      	`git_filebuf_hash` will fail accordingly and set the appropiate error
      	message. Baller!
      Vicent Martí committed
  19. 13 Feb, 2012 1 commit
  20. 08 Dec, 2011 1 commit
    • Use git_buf for path storage instead of stack-based buffers · 97769280
      This converts virtually all of the places that allocate GIT_PATH_MAX
      buffers on the stack for manipulating paths to use git_buf objects
      instead.  The patch is pretty careful not to touch the public API
      for libgit2, so there are a few places that still use GIT_PATH_MAX.
      
      This extends and changes some details of the git_buf implementation
      to add a couple of extra functions and to make error handling easier.
      
      This includes serious alterations to all the path.c functions, and
      several of the fileops.c ones, too.  Also, there are a number of new
      functions that parallel existing ones except that use a git_buf
      instead of a stack-based buffer (such as git_config_find_global_r
      that exists alongsize git_config_find_global).
      
      This also modifies the win32 version of p_realpath to allocate whatever
      buffer size is needed to accommodate the realpath instead of hardcoding
      a GIT_PATH_MAX limit, but that change needs to be tested still.
      Russell Belfer committed
  21. 07 Nov, 2011 1 commit
  22. 14 Oct, 2011 1 commit
  23. 27 Sep, 2011 1 commit
  24. 21 Sep, 2011 1 commit
  25. 19 Sep, 2011 1 commit
  26. 18 Sep, 2011 1 commit
    • Cleanup legal data · bb742ede
      1. The license header is technically not valid if it doesn't have a
      copyright signature.
      
      2. The COPYING file has been updated with the different licenses used in
      the project.
      
      3. The full GPLv2 header in each file annoys me.
      Vicent Marti committed
  27. 25 Jul, 2011 1 commit
  28. 05 Jul, 2011 1 commit
    • fileops: Cleanup · f79026b4
      Cleaned up the structure of the whole OS-abstraction layer.
      
      fileops.c now contains a set of utility methods for file management used
      by the library. These are abstractions on top of the original POSIX
      calls.
      
      There's a new file called `posix.c` that contains
      emulations/reimplementations of all the POSIX calls the library uses.
      These are prefixed with `p_`. There's a specific posix file for each
      platform (win32 and unix).
      
      All the path-related methods have been moved from `utils.c` to `path.c`
      and have their own prefix.
      Vicent Marti committed