stagit

remove config.h, add options to stagit.c

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 5b8b6cf parent: 5e36278
3 files changed, 6 insertions(+), 7 deletions(-)
MMakefile+1-5
Mstagit-index.c+0-1
Mstagit.c+5-1
M · Makefile +1, -5
 1@@ -49,11 +49,7 @@ dist:
 2 		gzip -c > ${NAME}-${VERSION}.tar.gz
 3 	rm -rf ${NAME}-${VERSION}
 4 
 5-${OBJ}: config.h config.mk ${HDR}
 6-
 7-config.h:
 8-	@echo creating $@ from config.def.h
 9-	@cp config.def.h $@
10+${OBJ}: config.mk ${HDR}
11 
12 stagit: stagit.o ${COMPATOBJ}
13 	${CC} -o $@ stagit.o ${COMPATOBJ} ${LDFLAGS}
M · stagit-index.c +0, -1
1@@ -12,7 +12,6 @@
2 #include <git2.h>
3 
4 #include "compat.h"
5-#include "config.h"
6 
7 static git_repository *repo;
8 
M · stagit.c +5, -1
 1@@ -13,7 +13,6 @@
 2 #include <git2.h>
 3 
 4 #include "compat.h"
 5-#include "config.h"
 6 
 7 struct deltainfo {
 8 	git_patch *patch;
 9@@ -47,6 +46,11 @@ struct commitinfo {
10 	size_t ndeltas;
11 };
12 
13+/* summary length (bytes) in the log */
14+static const unsigned summarylen = 70;
15+/* display line count or file size in file tree index */
16+static const int showlinecount = 1;
17+
18 static git_repository *repo;
19 
20 static const char *relpath = "";