[PATCH 0/3] Download patch between arbitrary revisions
Lukas Fleischer
cgit at cryptocrack.de
Wed Aug 14 10:50:30 CEST 2013
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(-)
--
1.8.4.rc2.477.g1da3ebd
More information about the CGit
mailing list