add weak git integration

This commit is contained in:
2025-11-22 10:22:26 -05:00
parent fc2e477665
commit 54db089b71
9 changed files with 58 additions and 10 deletions

10
main.c
View File

@@ -17,6 +17,10 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <unistd.h>
#include <sys/stat.h>
#include "edef.h"
#include "proj.h"
@@ -28,8 +32,8 @@ void usage(int status) {
printf("Usage: %s filename\n", PROGRAM_NAME);
printf(" or: %s [options]\n\n", PROGRAM_NAME);
fputs(" -s enable shell creation mode\n", stdout);
fputs(" -S enable shell creation mode as a full project\n",
stdout);
fputs(" -S enable shell creation mode as a full project\n", stdout);
fputs(" --git initialize a git repository\n", stdout);
fputs(" --help display this help and exit\n", stdout);
fputs(" --version output version information and exit\n", stdout);
@@ -59,6 +63,8 @@ int main(int argc, char **argv) {
shell_mode = SINGLE;
else if (argv[carg][1] == 'S')
shell_mode = FULL;
else if (strcmp(argv[carg], "--git"))
git = 1;
else
die("unknown option");
} else