git-query
git data extraction tool using c and libgit2
git clone https://9o.is/git/git-query.git
commit dbd4e9bcf8af3c943e62f7c69d7eaefe97f8c1fa parent 00cb2cbf8e098da10580fb156c5dfe9f0f3834aa Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 5 Jan 2016 21:41:03 +0100 stagit-index: owner is one line, strip newline Diffstat:
| M | stagit-index.c | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c @@ -221,6 +221,7 @@ main(int argc, char *argv[]) if (fp) { if (!fgets(owner, sizeof(owner), fp)) owner[0] = '\0'; + owner[strcspn(owner, "\n")] = '\0'; fclose(fp); } writelog(stdout);