libgit2/libgit2 — pull request #2066 by arrbee (2014-01-20 23:01:45+00:00)
Title: Add built in diff drivers

This extends the diff driver parser to support multiline driver definitions along with `!` prefixing for negated matches. The old implementation did not match core Git in this regard, which was not ideal for config-based drivers, but which completely precluded supporting the built in diff drivers.

This also adds an internal table of driver definitions and a fallback code path that will look in that table for diff drivers that are set with attributes without having a definition in the config file.

I have yet to decide which drivers I will bring over from core Git.

- [x] multi-line function name definitions
- [x] negative matches for function name definitions
- [x] fallback to internal table of diff drivers for missing drivers
- [ ] port diff drivers from Git
- [ ] test all the various ported drivers
- [ ] test the new definition capabilities from config files