Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-12-06 23:16:26 +0300
committerJunio C Hamano <gitster@pobox.com>2019-12-06 23:34:49 +0300
commitf8675343d79058ab5200e93e6c33058e13d7bb43 (patch)
treed479ad588d5121c780c055faebc22d535dd88a12 /range-diff.h
parent828765dfe0a4a1baae7fae750cbb6a62fcb32c7a (diff)
range-diff: mark pointers as const
The contents pointed to by `diffopt` and `other_arg` should not be modified. Mark these as `const` to indicate this. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'range-diff.h')
-rw-r--r--range-diff.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/range-diff.h b/range-diff.h
index 7d918ab9ed..381d52f4d3 100644
--- a/range-diff.h
+++ b/range-diff.h
@@ -13,7 +13,7 @@
*/
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);
#endif