- commit
- 2f7e7f2503014f66607b588f32de0b1be69c28a1
- parent
- 4a93974f52683114dd6c4db3bad0b7adace7c771
- Author
- Hiltjo Posthuma <hiltjo@codemadness.org>
- Date
- 2020-02-12 22:20
improve includes, stagit-index does not need compat.h
Diffstat
M | stagit-index.c | 7 | +------ |
M | stagit.c | 3 | ++- |
2 files changed, 3 insertions, 7 deletions
diff --git a/stagit-index.c b/stagit-index.c
@@ -1,18 +1,13 @@1 -1 #include <sys/stat.h>2 -13 1 #include <err.h>4 -1 #include <errno.h>5 -1 #include <inttypes.h>6 2 #include <limits.h> 7 3 #include <stdio.h> 8 4 #include <stdlib.h> 9 5 #include <string.h> -1 6 #include <time.h> 10 7 #include <unistd.h> 11 8 12 9 #include <git2.h> 13 1014 -1 #include "compat.h"15 -116 11 static git_repository *repo; 17 12 18 13 static const char *relpath = "";
diff --git a/stagit.c b/stagit.c
@@ -3,12 +3,13 @@ 3 3 4 4 #include <err.h> 5 5 #include <errno.h>6 -1 #include <inttypes.h>7 6 #include <libgen.h> 8 7 #include <limits.h> -1 8 #include <stdint.h> 9 9 #include <stdio.h> 10 10 #include <stdlib.h> 11 11 #include <string.h> -1 12 #include <time.h> 12 13 #include <unistd.h> 13 14 14 15 #include <git2.h>