libgit2/libgit2 — pull request #927 by arrbee (2012-09-11 22:06:35+00:00)
Title: Add git_repository_hashfile to hash with filters

The existing `git_odb_hashfile` does not apply text filtering rules because it doesn't have a repository context to evaluate the correct rules to apply. This adds a new hashfile function that will apply repository-specific filters (based on config, attributes, and filename) before calculating the hash.

The new function looks like:

```c
GIT_EXTERN(int) git_repository_hashfile(
git_oid *out,
git_repository *repo,
const char *path,
git_otype type,
const char *as_path);
```

This was discussed in issue #862 and this is a response to that issue.

Comments welcome!