diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-12-16 13:08:46 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-12-16 13:08:46 -0800 |
| commit | d1c0fe8d9b16bf8b6b1cc0e83fac6670e3f64f0f (patch) | |
| tree | 8885156cb43cf3b23cb30f0409c57ac56c3b1c26 /range-diff.c | |
| parent | Merge branch 'hw/doc-in-header' (diff) | |
| parent | range-diff: clear `other_arg` at end of function (diff) | |
| download | git-d1c0fe8d9b16bf8b6b1cc0e83fac6670e3f64f0f.tar.gz git-d1c0fe8d9b16bf8b6b1cc0e83fac6670e3f64f0f.zip | |
Merge branch 'dl/range-diff-with-notes'
Code clean-up.
* dl/range-diff-with-notes:
range-diff: clear `other_arg` at end of function
range-diff: mark pointers as const
t3206: fix incorrect test name
Diffstat (limited to 'range-diff.c')
| -rw-r--r-- | range-diff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/range-diff.c b/range-diff.c index f56b4012a2..f745567cf6 100644 --- a/range-diff.c +++ b/range-diff.c @@ -41,7 +41,7 @@ static size_t find_end_of_line(char *buffer, unsigned long size) * as struct object_id (will need to be free()d). */ static int read_patches(const char *range, struct string_list *list, - struct argv_array *other_arg) + const struct argv_array *other_arg) { struct child_process cp = CHILD_PROCESS_INIT; struct strbuf buf = STRBUF_INIT, contents = STRBUF_INIT; @@ -506,8 +506,8 @@ static struct strbuf *output_prefix_cb(struct diff_options *opt, void *data) int show_range_diff(const char *range1, const char *range2, int creation_factor, int dual_color, - struct diff_options *diffopt, - struct argv_array *other_arg) + const struct diff_options *diffopt, + const struct argv_array *other_arg) { int res = 0; |
