]> git.proxmox.com Git - libgit2.git/blobdiff - examples/blame.c
New upstream version 1.3.0+dfsg.1
[libgit2.git] / examples / blame.c
index 49350fc0f0ac2675492764c329d64259acb0b552..954c97b17d170397d2c9f8e743e096e06e64f9e5 100644 (file)
@@ -54,7 +54,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
         */
        if (o.commitspec) {
                check_lg2(git_revparse(&revspec, repo, o.commitspec), "Couldn't parse commit spec", NULL);
-               if (revspec.flags & GIT_REVPARSE_SINGLE) {
+               if (revspec.flags & GIT_REVSPEC_SINGLE) {
                        git_oid_cpy(&blameopts.newest_commit, git_object_id(revspec.from));
                        git_object_free(revspec.from);
                } else {