[PATCH 0/3] Download patch between arbitrary revisions
John Keeping
john at keeping.me.uk
Wed Aug 14 23:47:54 CEST 2013
On Wed, Aug 14, 2013 at 10:50:30AM +0200, Lukas Fleischer wrote:
> This is the first small patch series that allows for generating raw
> patches between arbitrary revisions.
>
> Note that the first patch only does some refactoring that is required in
> preparation for the second one. I wanted to do the same refactoring for
> the corresponding functions in ui-diff.c but this turned out to be much
> harder due to the use of global variables. It would be nice to do the
> same refactoring with filepair_cb() from ui-diff.c and eventually merge
> both filepair_cb(), header() and print_line() functions since they share
> quite some code. This is out of the scope of this patch series, though.
>
> Lukas Fleischer (3):
> Extract filepair_cb from ui-patch.c
> Allow for creating raw diffs with cgit_print_diff()
> cmd.c: Add a "rawdiff" command
>
> cmd.c | 8 ++++++-
> ui-commit.c | 2 +-
> ui-diff.c | 10 ++++++++-
> ui-diff.h | 2 +-
> ui-patch.c | 74 +------------------------------------------------------------
> ui-shared.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ui-shared.h | 1 +
> 7 files changed, 92 insertions(+), 77 deletions(-)
Nicely done! FWIW, the whole series
Reviewed-by: John Keeping <john at keeping.me.uk>
However, it would be nice to see something touching tests/ since we do
currently make some effort to test the basics of each command.
More information about the CGit
mailing list