diff options
| author | Russell Belfer <rb@github.com> | 2014-01-20 14:53:59 -0800 | 
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2014-01-24 10:43:05 -0800 | 
| commit | a5a386436b823257b9e1b1365d3e36c00a1a5d89 (patch) | |
| tree | 9f312f04514364d7e1f6ca2ceeb97468f1b325d6 /src/diff_driver.h | |
| parent | ca55fc6356a5edd838ca03b82f3601bd94e8d750 (diff) | |
| download | libgit2-a5a386436b823257b9e1b1365d3e36c00a1a5d89.tar.gz | |
Initial take on builtin drivers with multiline
This extends the diff driver parser to support multiline driver
definitions along with ! prefixing for negated matches.  This
brings the driver function pattern parsing in line with core Git.
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.  Right now, I just populated the table with a kind
of simple HTML definition that is similar to the core Git def.
Diffstat (limited to 'src/diff_driver.h')
| -rw-r--r-- | src/diff_driver.h | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_driver.h b/src/diff_driver.h index 9d3f18660..0706dcfc5 100644 --- a/src/diff_driver.h +++ b/src/diff_driver.h @@ -31,7 +31,7 @@ typedef long (*git_diff_find_context_fn)(  	const char *, long, char *, long, void *);  typedef int (*git_diff_find_context_line)( -	git_diff_driver *, const char *, size_t); +	git_diff_driver *, git_buf *);  typedef struct {  	git_diff_driver *driver;  | 
