diff options
| author | Lukas Fleischer | 2013-08-20 18:56:14 +0200 |
|---|---|---|
| committer | Jason A. Donenfeld | 2013-08-20 19:55:42 +0200 |
| commit | 750f6462c9e1e20e87d2bce5ca2e7fd10e0d1ba6 (patch) | |
| tree | a3b0e425d5f13e35b2a97d7fdb609bb8ada8ede7 /cmd.c | |
| parent | 455b5987780f53ef55ebf6edd4543976763152da (diff) | |
| download | cgit-750f6462c9e1e20e87d2bce5ca2e7fd10e0d1ba6.tar.gz cgit-750f6462c9e1e20e87d2bce5ca2e7fd10e0d1ba6.tar.bz2 cgit-750f6462c9e1e20e87d2bce5ca2e7fd10e0d1ba6.zip | |
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>
Diffstat (limited to 'cmd.c')
| -rw-r--r-- | cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -98,7 +98,7 @@ static void repolist_fn(struct cgit_context *ctx) | |||
| 98 | 98 | ||
| 99 | static void patch_fn(struct cgit_context *ctx) | 99 | static void patch_fn(struct cgit_context *ctx) |
| 100 | { | 100 | { |
| 101 | cgit_print_patch(ctx->qry.sha1, ctx->qry.path); | 101 | cgit_print_patch(ctx->qry.sha1, ctx->qry.sha2, ctx->qry.path); |
| 102 | } | 102 | } |
| 103 | 103 | ||
| 104 | static void plain_fn(struct cgit_context *ctx) | 104 | static void plain_fn(struct cgit_context *ctx) |
