mirror of
https://git.zx2c4.com/cgit
synced 2025-08-14 06:38:50 +02:00
Allow for creating patch series
This allows for specifying a revision range using the id2 parameter of /patch/. The output that is produced is similar to $ git format-patch --stdout id2..id Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
This commit is contained in:
parent
455b598778
commit
750f6462c9
3 changed files with 21 additions and 8 deletions
2
cmd.c
2
cmd.c
|
@ -98,7 +98,7 @@ static void repolist_fn(struct cgit_context *ctx)
|
|||
|
||||
static void patch_fn(struct cgit_context *ctx)
|
||||
{
|
||||
cgit_print_patch(ctx->qry.sha1, ctx->qry.path);
|
||||
cgit_print_patch(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path);
|
||||
}
|
||||
|
||||
static void plain_fn(struct cgit_context *ctx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue