remove config.h, add options to stagit.c
This commit is contained in:
parent
aa36e0c9b4
commit
069f105725
3 changed files with 6 additions and 7 deletions
6
Makefile
6
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}
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
#include <git2.h>
|
||||
|
||||
#include "compat.h"
|
||||
#include "config.h"
|
||||
|
||||
static git_repository *repo;
|
||||
|
||||
|
|
6
stagit.c
6
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 = "";
|
||||
|
|
Loading…
Reference in a new issue