]> git.armaanb.net Git - stagit.git/commitdiff
remove config.h, add options to stagit.c
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 2 May 2016 22:38:33 +0000 (00:38 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 2 May 2016 22:38:33 +0000 (00:38 +0200)
Makefile
stagit-index.c
stagit.c

index eb6e9e8d0b87fa0fdac9343100331c1be9085621..872f5210596a91bcdc395e971a3b524f697f6e46 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,11 +49,7 @@ dist:
                gzip -c > ${NAME}-${VERSION}.tar.gz
        rm -rf ${NAME}-${VERSION}
 
-${OBJ}: config.h config.mk ${HDR}
-
-config.h:
-       @echo creating $@ from config.def.h
-       @cp config.def.h $@
+${OBJ}: config.mk ${HDR}
 
 stagit: stagit.o ${COMPATOBJ}
        ${CC} -o $@ stagit.o ${COMPATOBJ} ${LDFLAGS}
index afd83204e33af7ee58b233a2be4a9af36824d809..8a01894d3c20a6a0a8e345b3f12ecce69b275994 100644 (file)
@@ -12,7 +12,6 @@
 #include <git2.h>
 
 #include "compat.h"
-#include "config.h"
 
 static git_repository *repo;
 
index 9a8c32fa863f7732833883e2f88443af1cc5d28b..80544e2c7737e24364dc821d091b3d33efaabc6c 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -13,7 +13,6 @@
 #include <git2.h>
 
 #include "compat.h"
-#include "config.h"
 
 struct deltainfo {
        git_patch *patch;
@@ -47,6 +46,11 @@ struct commitinfo {
        size_t ndeltas;
 };
 
+/* summary length (bytes) in the log */
+static const unsigned summarylen = 70;
+/* display line count or file size in file tree index */
+static const int showlinecount = 1;
+
 static git_repository *repo;
 
 static const char *relpath = "";