Fix example/log.c pathspec handling of merges

This fixes the way the example log program decides if a merge
commit should be shown when a pathspec is given.  Also makes it
easier to use the pathspec API to just check "does a tree match
anything in the pathspec" without allocating a match list.
This commit is contained in:
Russell Belfer
2013-07-03 17:00:50 -07:00
committed by Vicent Marti
parent 733c4f3aca
commit a8b5f116bc
3 changed files with 106 additions and 40 deletions

View File

@@ -56,5 +56,6 @@
#include "git2/message.h"
#include "git2/pack.h"
#include "git2/stash.h"
#include "git2/pathspec.h"
#endif