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

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Gesiak <modocache@gmail.com>2014-03-05 08:06:31 +0400
committerBrian Gesiak <modocache@gmail.com>2014-03-05 08:06:31 +0400
commit0d3c8a9d9202f69ee0366f2eeab1765b18b49baa (patch)
tree36dfecd7ddca77e5a9907dcc437ea352a58df1ee /examples/diff.c
parent66d9e0461c7c0d8ec3fdb23b192399c6eb05e9a9 (diff)
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.
Diffstat (limited to 'examples/diff.c')
-rw-r--r--examples/diff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/diff.c b/examples/diff.c
index de994ecab..65c618882 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -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(