diff options
author | Lars Hjemli | 2006-12-20 22:48:27 +0100 |
---|---|---|
committer | Lars Hjemli | 2006-12-20 22:48:27 +0100 |
commit | 36aba00273e7af1b94bf8c5dd5068709d983d01e (patch) | |
tree | d9be4e6f27b115a799af40cad43445f63fbf2238 /shared.c | |
parent | a53042865a4ac8b1fa1d6b37720787601e181495 (diff) | |
download | cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.tar.gz cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.tar.bz2 cgit-36aba00273e7af1b94bf8c5dd5068709d983d01e.zip |
Add basic diff view
Finally, xdiff is used to show per-file diffs via commit view.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -37,6 +37,7 @@ char *cgit_query_repo = NULL; | |||
37 | char *cgit_query_page = NULL; | 37 | char *cgit_query_page = NULL; |
38 | char *cgit_query_head = NULL; | 38 | char *cgit_query_head = NULL; |
39 | char *cgit_query_sha1 = NULL; | 39 | char *cgit_query_sha1 = NULL; |
40 | char *cgit_query_sha2 = NULL; | ||
40 | int cgit_query_ofs = 0; | 41 | int cgit_query_ofs = 0; |
41 | 42 | ||
42 | int htmlfd = 0; | 43 | int htmlfd = 0; |
@@ -83,6 +84,9 @@ void cgit_querystring_cb(const char *name, const char *value) | |||
83 | } else if (!strcmp(name, "id")) { | 84 | } else if (!strcmp(name, "id")) { |
84 | cgit_query_sha1 = xstrdup(value); | 85 | cgit_query_sha1 = xstrdup(value); |
85 | cgit_query_has_sha1 = 1; | 86 | cgit_query_has_sha1 = 1; |
87 | } else if (!strcmp(name, "id2")) { | ||
88 | cgit_query_sha2 = xstrdup(value); | ||
89 | cgit_query_has_sha1 = 1; | ||
86 | } else if (!strcmp(name, "ofs")) { | 90 | } else if (!strcmp(name, "ofs")) { |
87 | cgit_query_ofs = atoi(value); | 91 | cgit_query_ofs = atoi(value); |
88 | } | 92 | } |