mirror of
https://git.zx2c4.com/cgit
synced 2025-09-01 07:19:56 +02:00
Allow for creating raw diffs with cgit_print_diff()
This adds a parameter to cgit_print_diff() to create raw diffs, using the same format as `git diff <commit>`. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
747b035dda
commit
9003cc172a
4 changed files with 12 additions and 4 deletions
2
cmd.c
2
cmd.c
|
@ -57,7 +57,7 @@ static void commit_fn(struct cgit_context *ctx)
|
|||
|
||||
static void diff_fn(struct cgit_context *ctx)
|
||||
{
|
||||
cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path, 1);
|
||||
cgit_print_diff(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path, 1, 0);
|
||||
}
|
||||
|
||||
static void info_fn(struct cgit_context *ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue