1. 26 Jun, 2019 2 commits
    • attr: fix attribute lookup if repo has no common directory · 82c7a9bc
      If creating a repository without a common directory (e.g. by
      using `git_repository_new`), then `git_repository_item_path` will
      return `GIT_ENOTFOUND` for every file that's usually located in
      this directory. While we do not care for this case when looking
      up the "info/attributes" file, we fail to properly ignore these
      errors when setting up or collecting attributes files. Thus, the
      gitattributes lookup is broken and will only ever return
      `GIT_ENOTFOUND`.
      
      Fix this issue by properly ignoring `GIT_ENOTFOUND` returned by
      `git_repository_item_path`.
      Patrick Steinhardt committed
    • attr: refactor setup to match current coding style · 5452e49f
      The code in the `attr_setup` function is not really matching our
      current coding style. Besides alignment issues, it's also hard to
      see what functions calls depend on one another because they're
      split up over multiple conditional statements.
      
      Fix these issues by grouping together dependent function calls
      and adjusting the alignment.
      Patrick Steinhardt committed
  2. 25 Jun, 2019 1 commit
  3. 24 Jun, 2019 37 commits