-rw-r--r-- | ui-diff.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -36,2 +36,13 @@ static struct fileinfo { static int use_ssdiff = 0; +static struct diff_filepair *current_filepair; + +struct diff_filespec *cgit_get_current_old_file(void) +{ + return current_filepair->one; +} + +struct diff_filespec *cgit_get_current_new_file(void) +{ + return current_filepair->two; +} @@ -286,2 +297,3 @@ static void filepair_cb(struct diff_filepair *pair) + current_filepair = pair; if (use_ssdiff) { |