don't recursively check for -v arg
This commit is contained in:
parent
2dc0d582e6
commit
3fb00b615c
1 changed files with 4 additions and 6 deletions
8
XD.c
8
XD.c
|
|
@ -163,15 +163,13 @@ has_staged(git_repository *repo)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int i, code = -1;
|
int code = -1;
|
||||||
|
|
||||||
/* print version information */
|
/* print version information */
|
||||||
for (i = 1; i < argc; i++) {
|
if (strcmp(argv[1], "-v") == 0) {
|
||||||
if (strcmp(argv[i], "-v") == 0) {
|
printf("XD [number] v%s\n", VERSION);
|
||||||
printf("XD v%s\n", VERSION);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef GIT
|
#ifdef GIT
|
||||||
git_repository *repo;
|
git_repository *repo;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue