From 0f3997d6ff2d25c0941824ec3daa3c8e767bd73e Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Tue, 20 Oct 2026 11:20:15 +0530 Subject: wrote the entire thing using libgit2 --- src/config.c | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/config.c (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c deleted file mode 100644 index ab0eb05..0000000 --- a/src/config.c +++ /dev/null @@ -1,24 +0,0 @@ -#include "lib.h" -#include -#include - -char config[PATH_MAX] = {0}; -char* get_default_config() { - if (config[0] != 0) return config; - - const char* xdg_config_home = getenv("XDG_CONFIG_HOME"); - const char* home = getenv("HOME"); - - if (home == NULL) { - fprintf(stderr, "HOME environment variable not set, failed to determine the config path"); - return NULL; - } - - if (xdg_config_home != NULL && xdg_config_home[0] != 0) { - snprintf(config, PATH_MAX, "%s/backbencher/.backupignore", xdg_config_home); - } else { - snprintf(config, PATH_MAX, "%s/.config/backbencher/.backupignore", home); - } - - return config; -} -- cgit v1.2.3