1. 19 Dec, 2011 1 commit
    • config_file: honor error · e95849c1
      Return an error if we can't write an updated version of the config file
      after config_delete.
      
      Along with that, fix an uninitialized warning.
      
      Signed-off-by: schu <schu-github@schulog.org>
      schu committed
  2. 16 Dec, 2011 2 commits
  3. 15 Dec, 2011 1 commit
  4. 26 Nov, 2011 2 commits
    • repository: Change ownership semantics · 9462c471
      The ownership semantics have been changed all over the library to be
      consistent. There are no more "borrowed" or duplicated references.
      
      Main changes:
      
      	- `git_repository_open2` and `3` have been dropped.
      
      	- Added setters and getters to hotswap all the repository owned
      	objects:
      
      		`git_repository_index`
      		`git_repository_set_index`
      		`git_repository_odb`
      		`git_repository_set_odb`
      		`git_repository_config`
      		`git_repository_set_config`
      		`git_repository_workdir`
      		`git_repository_set_workdir`
      
      	Now working directories/index files/ODBs and so on can be
      	hot-swapped after creating a repository and between operations.
      
      	- All these objects now have proper ownership semantics with
      	refcounting: they all require freeing after they are no longer
      	needed (the repository always keeps its internal reference).
      
      	- Repository open and initialization has been updated to keep in
      	mind the configuration files. Bare repositories are now always
      	detected, and a default config file is created on init.
      
      	- All the tests affected by these changes have been dropped from the
      	old test suite and ported to the new one.
      Vicent Marti committed
  5. 22 Nov, 2011 1 commit
  6. 29 Oct, 2011 1 commit
  7. 27 Oct, 2011 1 commit
  8. 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
  9. 01 Oct, 2011 2 commits
  10. 19 Sep, 2011 1 commit
    • Tabify everything · 87d9869f
      There were quite a few places were spaces were being used instead of
      tabs. Try to catch them all. This should hopefully not break anything.
      Except for `git blame`. Oh well.
      Vicent Marti committed
  11. 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
  12. 12 Sep, 2011 1 commit
  13. 08 Sep, 2011 2 commits
  14. 30 Aug, 2011 1 commit
  15. 25 Aug, 2011 1 commit
  16. 18 Aug, 2011 1 commit
  17. 17 Aug, 2011 1 commit
  18. 05 Jul, 2011 3 commits
    • Correctly detect truncated input in header parsing · f58c53ce
      If the section header is the last line in the file,
      parse_section_header would incorrectly decide that the input had been
      truncated.
      
      Fix this by checking whether the actual input line is correctly
      formatted.
      
      Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
      Carlos Martín Nieto committed
    • Add git_config_del to delete a variable · 6d4b6097
      Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
      Carlos Martín Nieto committed
    • 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
  19. 29 Jun, 2011 1 commit
  20. 17 Jun, 2011 2 commits
  21. 16 Jun, 2011 1 commit
  22. 14 Jun, 2011 1 commit
  23. 07 Jun, 2011 3 commits
  24. 31 May, 2011 6 commits
  25. 24 May, 2011 1 commit
  26. 23 May, 2011 1 commit