diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-08-16 11:01:09 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2016-10-10 09:04:42 +0200 |
| commit | 5c2a8361d779477b4d3474c660157bd62e750fe2 (patch) | |
| tree | 261e5d66ab68e5fdd88c63314d36e61663dd5918 /examples/diff.c | |
| parent | 7314da105532306dad21843c8997b746b02fa3ed (diff) | |
| download | libgit2-5c2a8361d779477b4d3474c660157bd62e750fe2.tar.gz | |
examples: diff: parse correct types for line-diffopts
Diffstat (limited to 'examples/diff.c')
| -rw-r--r-- | examples/diff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/diff.c b/examples/diff.c index b69cb2218..9a4f7a59f 100644 --- a/examples/diff.c +++ b/examples/diff.c @@ -293,11 +293,11 @@ static void parse_opts(struct opts *o, int argc, char *argv[]) else if (is_prefixed(a, "-B") || is_prefixed(a, "--break-rewrites")) /* TODO: parse thresholds */ o->findopts.flags |= GIT_DIFF_FIND_REWRITES; - else if (!match_uint16_arg( + else if (!match_uint32_arg( &o->diffopts.context_lines, &args, "-U") && - !match_uint16_arg( + !match_uint32_arg( &o->diffopts.context_lines, &args, "--unified") && - !match_uint16_arg( + !match_uint32_arg( &o->diffopts.interhunk_lines, &args, "--inter-hunk-context") && !match_uint16_arg( &o->diffopts.id_abbrev, &args, "--abbrev") && |
