Skip to content

Commit

Permalink
merge-recursive: Mark some diff_filespec struct arguments const
Browse files Browse the repository at this point in the history
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Elijah Newren authored and Junio C Hamano committed Aug 14, 2011
1 parent abafc88 commit 0c05942
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions merge-recursive.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,10 @@ static struct string_list *get_renames(struct merge_options *o,
return renames;
}

static int update_stages_options(const char *path, struct diff_filespec *o,
struct diff_filespec *a, struct diff_filespec *b,
int clear, int options)
static int update_stages_options(const char *path, const struct diff_filespec *o,
const struct diff_filespec *a,
const struct diff_filespec *b,
int clear, int options)
{
if (clear)
if (remove_file_from_cache(path))
Expand Down Expand Up @@ -710,9 +711,9 @@ struct merge_file_info {

static int merge_3way(struct merge_options *o,
mmbuffer_t *result_buf,
struct diff_filespec *one,
struct diff_filespec *a,
struct diff_filespec *b,
const struct diff_filespec *one,
const struct diff_filespec *a,
const struct diff_filespec *b,
const char *branch1,
const char *branch2)
{
Expand Down Expand Up @@ -770,9 +771,9 @@ static int merge_3way(struct merge_options *o,
}

static struct merge_file_info merge_file(struct merge_options *o,
struct diff_filespec *one,
struct diff_filespec *a,
struct diff_filespec *b,
const struct diff_filespec *one,
const struct diff_filespec *a,
const struct diff_filespec *b,
const char *branch1,
const char *branch2)
{
Expand Down

0 comments on commit 0c05942

Please sign in to comment.