aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-05-03 00:38:33 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-05-03 00:38:33 +0200
commit069f105725677ce2784d3d0def156c3115c9e330 (patch)
tree44f719a78101de24a4ecf94f8048d8a68b445b37
parentaa36e0c9b4d8da06c5dc03a461f9d3fe69a1e7fb (diff)
downloadstagit-fork-069f105725677ce2784d3d0def156c3115c9e330.zip
remove config.h, add options to stagit.c
-rw-r--r--Makefile6
-rw-r--r--stagit-index.c1
-rw-r--r--stagit.c6
3 files changed, 6 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index eb6e9e8..872f521 100644
--- 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}
diff --git a/stagit-index.c b/stagit-index.c
index afd8320..8a01894 100644
--- a/stagit-index.c
+++ b/stagit-index.c
@@ -12,7 +12,6 @@
#include <git2.h>
#include "compat.h"
-#include "config.h"
static git_repository *repo;
diff --git a/stagit.c b/stagit.c
index 9a8c32f..80544e2 100644
--- 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 = "";