1. 07 Apr, 2019 2 commits
  2. 05 Apr, 2019 1 commit
    • ignore: treat paths with trailing "/" as directories · 9d117e20
      The function `git_ignore_path_is_ignored` is there to test the
      ignore status of paths that need not necessarily exist inside of
      a repository. This has the implication that for a given path, we
      cannot always decide whether it references a directory or a file,
      and we need to distinguish those cases because ignore rules may
      treat those differently. E.g. given the following gitignore file:
      
          *
          !/**/
      
      we'd only want to unignore directories, while keeping files
      ignored. But still, calling `git_ignore_path_is_ignored("dir/")`
      will say that this directory is ignored because it treats "dir/"
      as a file path.
      
      As said, the `is_ignored` function cannot always decide whether
      the given path is a file or directory, and thus it may produce
      wrong results in some cases. While this is unfixable in the
      general case, we can do better when we are being passed a path
      name with a trailing path separator (e.g. "dir/") and always
      treat them as directories.
      Patrick Steinhardt committed
  3. 04 Apr, 2019 6 commits
  4. 29 Mar, 2019 11 commits
  5. 25 Mar, 2019 2 commits
  6. 23 Mar, 2019 1 commit
  7. 20 Mar, 2019 2 commits
  8. 15 Mar, 2019 1 commit
  9. 14 Mar, 2019 2 commits
  10. 06 Mar, 2019 1 commit
  11. 05 Mar, 2019 1 commit
  12. 02 Mar, 2019 2 commits
  13. 28 Feb, 2019 2 commits
  14. 27 Feb, 2019 3 commits
  15. 25 Feb, 2019 2 commits
  16. 23 Feb, 2019 1 commit
    • odb: provide a free function for custom backends · 459ac856
      Custom backends can allocate memory when reading objects and providing
      them to libgit2.  However, if an error occurs in the custom backend
      after the memory has been allocated for the custom object but before
      it's returned to libgit2, the custom backend has no way to free that
      memory and it must be leaked.
      
      Provide a free function that corresponds to the alloc function so that
      custom backends have an opportunity to free memory before they return an
      error.
      Edward Thomson committed