mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
examples/diff: Add minimal, patience diff options.
- Add minimal, patience diff options to diff example. libgit2 `diff_xdiff.git_xdiff_init` already supports these flags, so no additional change is necessary. - Remove minimal and patience flag addition from project list.
This commit is contained in:
@@ -234,6 +234,10 @@ static void parse_opts(struct opts *o, int argc, char *argv[])
|
||||
o->diffopts.flags |= GIT_DIFF_INCLUDE_IGNORED;
|
||||
else if (!strcmp(a, "--untracked"))
|
||||
o->diffopts.flags |= GIT_DIFF_INCLUDE_UNTRACKED;
|
||||
else if (!strcmp(a, "--patience"))
|
||||
o->diffopts.flags |= GIT_DIFF_PATIENCE;
|
||||
else if (!strcmp(a, "--minimal"))
|
||||
o->diffopts.flags |= GIT_DIFF_MINIMAL;
|
||||
else if (!strcmp(a, "--numstat"))
|
||||
o->numstat = 1;
|
||||
else if (match_uint16_arg(
|
||||
|
||||
Reference in New Issue
Block a user