1. 13 Feb, 2012 1 commit
  2. 19 Jan, 2012 2 commits
  3. 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
  4. 28 Nov, 2011 1 commit
  5. 18 Nov, 2011 1 commit
  6. 29 Oct, 2011 1 commit
  7. 14 Oct, 2011 1 commit
    • *: correct and codify various file permissions · 01ad7b3a
      The following files now have 0444 permissions:
      
      - loose objects
      - pack indexes
      - pack files
      - packs downloaded by fetch
      - packs downloaded by the HTTP transport
      
      And the following files now have 0666 permissions:
      
      - config files
      - repository indexes
      - reflogs
      - refs
      
      This brings libgit2 more in line with Git.
      
      Note that git_filebuf_commit() and git_filebuf_commit_at() have both
      gained a new mode parameter.
      
      The latter change fixes an important issue where filebufs created with
      GIT_FILEBUF_TEMPORARY received 0600 permissions (due to mkstemp(3)
      usage). Now we chmod() the file before renaming it into place.
      
      Tests have been added to confirm that new commit, tag, and tree
      objects are created with the right permissions. I don't have access to
      Windows, so for now I've guarded the tests with "#ifndef GIT_WIN32".
      Brodie Rao committed
  8. 13 Oct, 2011 1 commit
  9. 12 Oct, 2011 10 commits
  10. 01 Oct, 2011 3 commits
  11. 30 Sep, 2011 2 commits
  12. 27 Sep, 2011 1 commit
    • Fix dev branch under MSVC · 887eaf4d
      In libgit2: Move an enum out of an int bitfield in the HTTP transport.
      
      In the parser: Use int bitfields and change some variable sizes to
      better fit thir use. Variables that count the size of the data chunk
      can only ever be as large as off_t. Warning 4127 can be ignored, as
      nobody takes it seriously anyway.
      
      From Emeric: change some variable declarations to keep MSVC happy.
      
      Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
      Carlos Martín Nieto committed
  13. 21 Sep, 2011 1 commit
  14. 12 Sep, 2011 3 commits
  15. 04 Sep, 2011 1 commit
  16. 21 Mar, 2011 1 commit
  17. 20 Mar, 2011 1 commit
  18. 01 Nov, 2008 1 commit