bump version info and add compile info to version
This commit is contained in:
parent
8ac77308f4
commit
ec2591c926
3 changed files with 22 additions and 4 deletions
12
XD.c
12
XD.c
|
|
@ -1,8 +1,8 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#ifdef ERR
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#ifdef GIT
|
||||
|
|
@ -155,9 +155,17 @@ has_staged(git_repository *repo)
|
|||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int code = -1;
|
||||
int i, code = -1;
|
||||
char face[] = { ':', 0, '|' };
|
||||
|
||||
/* print version information */
|
||||
for (i = 1; i < argc; i++) {
|
||||
if (strcmp(argv[i], "-v") == 0) {
|
||||
printf("XD v%s\n", VERSION);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef GIT
|
||||
git_repository *repo;
|
||||
int git_ok = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue