ui-commit: Limit diff based on path limit in qry.path Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Johan Herland johan@herland.net
Thu, 10 Jun 2010 01:09:32 +0200
3 files changed,
4 insertions(+),
4 deletions(-)
M
ui-commit.c
→
ui-commit.c
@@ -12,7 +12,7 @@ #include "ui-shared.h"
#include "ui-diff.h" #include "ui-log.h" -void cgit_print_commit(char *hex) +void cgit_print_commit(char *hex, const char *prefix) { struct commit *commit, *parent; struct commitinfo *info;@@ -117,7 +117,7 @@ if (parents)
tmp = sha1_to_hex(commit->parents->item->object.sha1); else tmp = NULL; - cgit_print_diff(ctx.qry.sha1, tmp, NULL); + cgit_print_diff(ctx.qry.sha1, tmp, prefix); } cgit_free_commitinfo(info); }
M
ui-commit.h
→
ui-commit.h
@@ -1,6 +1,6 @@
#ifndef UI_COMMIT_H #define UI_COMMIT_H -extern void cgit_print_commit(char *hex); +extern void cgit_print_commit(char *hex, const char *prefix); #endif /* UI_COMMIT_H */