johnmehr / gitup

A minimalist, dependency-free FreeBSD program to clone/pull Git repositories.
BSD 2-Clause "Simplified" License
51 stars 9 forks source link

provide cmdline arg to specify config file #38

Closed emaste closed 3 years ago

emaste commented 3 years ago

for testing and development it would be convenient to specify a non-default configuration file e.g. gitup -C ~/gitup.conf

johnmehr commented 3 years ago

I just pushed an update. How does it look?

emaste commented 3 years ago

failed to build on -CURRENT (Clang 11):

gitup.c:2145:22: error: initializing 'char *' with an expression of type 'const char [34]' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers]
        char               *configuration_file = CONFIG_FILE_PATH, *command = NULL;
                            ^                    ~~~~~~~~~~~~~~~~
1 error generated.
*** Error code 1

Changing to const char *configuration_file fixes it for me

johnmehr commented 3 years ago

Sorry about that. How does it look now?

emaste commented 3 years ago

Looks good now thanks