1. 28 Feb, 2013 2 commits
  2. 08 Feb, 2013 5 commits
  3. 07 Feb, 2013 2 commits
  4. 08 Jan, 2013 1 commit
  5. 17 Dec, 2012 1 commit
  6. 27 Nov, 2012 2 commits
  7. 20 Nov, 2012 3 commits
  8. 15 Nov, 2012 1 commit
    • Add POSIX compat lstat() variant for win32 · cccacac5
      The existing p_lstat implementation on win32 is not quite POSIX
      compliant when setting errno to ENOTDIR.  This adds an option to
      make is be compliant so that code (such as checkout) that cares
      to have separate behavior for ENOTDIR can use it portably.
      
      This also contains a couple of other minor cleanups in the
      posix_w32.c implementations to avoid unnecessary work.
      Russell Belfer committed
  9. 07 Nov, 2012 1 commit
  10. 29 Aug, 2012 2 commits
  11. 02 Aug, 2012 1 commit
  12. 18 Jul, 2012 1 commit
  13. 16 Jul, 2012 1 commit
  14. 21 Jun, 2012 1 commit
    • fix below issues on mingw: · dfa0b65c
      1. compile warning:
      
      D:\libgit2.git\src\win32\posix_w32.c: In function 'p_open':
      D:\libgit2.git\src\win32\posix_w32.c:235:10: warning: 'mode_t' is promoted to 'int' when passed through '...' [enabled by default]
      D:\libgit2.git\src\win32\posix_w32.c:235:10: note: (so you should pass 'int' not 'mode_t' to 'va_arg')
      D:\libgit2.git\src\win32\posix_w32.c:235:10: note: if this code is reached, the program will abort
      
      2. test crash.
      
      3. the above two issues are same root cause. please see http://www.eskimo.com/~scs/cclass/int/sx11c.html
      liyuray committed
  15. 07 Jun, 2012 1 commit
  16. 06 Jun, 2012 1 commit
  17. 15 May, 2012 1 commit
  18. 08 May, 2012 1 commit
  19. 07 May, 2012 1 commit
  20. 17 Apr, 2012 1 commit
  21. 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
  22. 13 Mar, 2012 1 commit
    • Migrate ODB files to new error handling · e1de726c
      This migrates odb.c, odb_loose.c, odb_pack.c and pack.c to
      the new style of error handling.  Also got the unix and win32
      versions of map.c.  There are some minor changes to other
      files but no others were completely converted.
      
      This also contains an update to filebuf so that a zeroed out
      filebuf will not think that the fd (== 0) is actually open
      (and inadvertently call close() on fd 0 if cleaned up).
      
      Lastly, this was built and tested on win32 and contains a
      bunch of fixes for the win32 build which was pretty broken.
      Russell Belfer committed
  23. 06 Mar, 2012 1 commit
    • error-handling: Repository · cb8a7961
      This also includes droping `git_buf_lasterror` because it makes no sense
      in the new system. Note that in most of the places were it has been
      dropped, the code needs cleanup. I.e. GIT_ENOMEM is going away, so
      instead it should return a generic `-1` and obviously not throw
      anything.
      Vicent Martí committed
  24. 03 Mar, 2012 1 commit
  25. 13 Feb, 2012 1 commit
  26. 17 Jan, 2012 1 commit
  27. 16 Jan, 2012 1 commit
  28. 14 Dec, 2011 1 commit
  29. 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
  30. 07 Nov, 2011 1 commit