git-query

git data extraction tool using c and libgit2

git clone https://9o.is/git/git-query.git

commit e421e93ac6d72bccea3b78f1a3eff0008b75d44f
parent 3a1da08cae1ffbe1cc78e7041ba79cb0ec326b78
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 26 Jul 2022 23:50:40 +0200

Makefile: add workaround for distros still using older libgit2 versions

Noticed on Void Linux, Debian, etc.

Diffstat:
MMakefile | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile @@ -16,6 +16,10 @@ STAGIT_CFLAGS = ${LIBGIT_INC} ${CFLAGS} STAGIT_LDFLAGS = ${LIBGIT_LIB} ${LDFLAGS} STAGIT_CPPFLAGS = -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE -D_BSD_SOURCE +# Uncomment to enable workaround for older libgit2 which don't support this +# option. This workaround will be removed in the future *pinky promise*. +#STAGIT_CFLAGS += -DGIT_OPT_SET_OWNER_VALIDATION=-1 + SRC = \ stagit.c\ stagit-index.c