Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-15 | Added the `git_branch` struct, and replaced all | mrb0nk500 | |
instances of `git_reference` with it. | |||
2021-06-15 | Added `pull_request`, `file`, and `comment` structs. | mrb0nk500 | |
These structs are used for accepting, rejecting, creating, sending, and receiving pull requests. | |||
2021-06-15 | Added include for `strings.h`. | mrb0nk500 | |
This is because `strcasecmp()` is technically in `strings.h`, rather than `string.h`. | |||
2021-06-13 | Added a placeholder for the git root in `test.conf`. | mrb0nk500 | |
2021-06-13 | Fixed a typo with appending the directory name to the | mrb0nk500 | |
git root, and also comment out a debug log message. I forgot to add a `/` oof. | |||
2021-06-13 | Fixed a stupid bug with not freeing the linked list. | mrb0nk500 | |
2021-06-13 | Added the `repos` parameter to both `main_loop()`, and | mrb0nk500 | |
`cleanup()`, and also call the git initialization code in the main program. | |||
2021-06-13 | Added `cleanup_git()`. | mrb0nk500 | |
This function cleans up the initialized git state. | |||
2021-06-13 | Include `git.h` in `pullreqd.c`. | mrb0nk500 | |
Also added the necessary externs. | |||
2021-06-13 | Tell gcc to stop complaining about `readdir_r()` being | mrb0nk500 | |
deprecated. | |||
2021-06-13 | Link with libgit2 now. | mrb0nk500 | |
2021-06-13 | Finished the git initialization code. | mrb0nk500 | |
2021-06-13 | Added the `git_repo` struct. | mrb0nk500 | |
This is a linked list, that will be temporarily be used by `init_git()`. | |||
2021-06-13 | Make the `data` member of `cmd` a flexable array | mrb0nk500 | |
member. This is to make it easier to send the packet, due to not having to create an extra buffer before sending the packet. | |||
2021-06-13 | Changed the order of the struct definitions in | mrb0nk500 | |
`network.h`. It wouldn't compile due to them not being defined eariler, and I don't want to do prototyping. | |||
2021-06-12 | Remove unecessary includes. | mrb0nk500 | |
This is because I now have these includes in `network.h`. | |||
2021-06-12 | Start work on the networking code. | mrb0nk500 | |
2021-06-12 | Start work on the git related code. | mrb0nk500 | |
2021-06-12 | Expanded all instances of `did_fail`, and | mrb0nk500 | |
`did_fail_reason`. I also replaced all instances of `log` in the expanded `did_fail_reason` instances with `log_reason`. | |||
2021-06-12 | Removed `did_fail`, and `did_fail_reason`, and added | mrb0nk500 | |
`log_reason`. I didn't realize just how unreadable the codebase became, with those two macros. | |||
2021-06-12 | Replaced all log messages with the macros from | mrb0nk500 | |
`macros.h`. This was done not only to make it smaller, and easier to read, but also to make it easier for debugging. | |||
2021-06-12 | Created `macros.h`. | mrb0nk500 | |
This header contains any macros that're widely used throughout the codebase. | |||
2021-06-11 | Replace call to `malloc()` with call to `calloc()` in | mrb0nk500 | |
the config parser. Because `calloc()` zeros out the allocated space, we can remove the previous call to `memset()`. | |||
2021-06-11 | Replace `!` with `== 0` for all calls to | mrb0nk500 | |
`strcasecmp()`. This was done to make it more readable. | |||
2021-06-11 | Remove unneeded call to `memset()` in `make_str()`. | mrb0nk500 | |
2021-06-11 | Change `port` from an int to a string, and move the | mrb0nk500 | |
valid port check into the config parser. | |||
2021-06-11 | Added a test config file. | mrb0nk500 | |
2021-06-11 | Added failure reasons to all the failure log messages | mrb0nk500 | |
in `init_socket()`. | |||
2021-06-10 | Changed `fd` to a `const int`, and added a failed | mrb0nk500 | |
socket creation reason in `init_socket()`. | |||
2021-06-10 | Fixed a typo in `init_socket()`. | mrb0nk500 | |
Accidentally used `sprintf()`, instead of `snprintf()`. | |||
2021-06-10 | Finished `init_socket()`. | mrb0nk500 | |
2021-06-10 | Added the include for `netdb.h`. | mrb0nk500 | |
2021-06-10 | Fixed a bug in `parse_config()` that was caused by not | mrb0nk500 | |
zeroing `cfg`. | |||
2021-06-10 | Added the `cleanup()`, and `cleanup_config()` | mrb0nk500 | |
functions. | |||
2021-06-10 | Added the `make_str()` function. | mrb0nk500 | |
This function automatically allocates a string that's the same size of the supplied string, and copies it to this newly allocated string, which is then returned. Since this uses `malloc()`, it must be `free()`'d after it's been used. | |||
2021-06-09 | Fixed segfault in `read_file()` that occured whenever | mrb0nk500 | |
the file couldn't be opened. Forgot about that call to `fclose()`. | |||
2021-06-09 | Added the socket, and network includes. | mrb0nk500 | |
Forgot to add them. oof | |||
2021-06-09 | Started work on adding the socket initialization code. | mrb0nk500 | |
2021-06-09 | Moved the main loop into a separate function. | mrb0nk500 | |
2021-06-09 | Move the main loop code into an if statement. | mrb0nk500 | |
This was done to make it easier to understand what's going on. | |||
2021-06-08 | Fixed a typo in `init_config()`. | mrb0nk500 | |
2021-06-08 | Include `config.h` in `pullreqd.c`. | mrb0nk500 | |
I forgot to add it. oof | |||
2021-06-08 | Added the config file initialization code. | mrb0nk500 | |
2021-06-08 | Added the `init_config()` function. | mrb0nk500 | |
This function reads the config file supplied by `config_file`, and initialize the `config *` supplied by `cfg` accordingly. `init_config()` returns true if the config file was successfully read, otherwise, it returns false. | |||
2021-06-08 | Added the `done` flag. | mrb0nk500 | |
This flag, when true, exits the main loop, and thus exits the program. | |||
2021-06-08 | Treat `TYPE_BOOL` the same as `TYPE_INT`. | mrb0nk500 | |
The reason for keeping `TYPE_BOOL` is for readability. | |||
2021-06-08 | Remove the `b` member from the `config_val` union. | mrb0nk500 | |
We can use the `i` member instead. | |||
2021-06-08 | Removed unnecessary comment in `config_opts`. | mrb0nk500 | |
2021-06-07 | Fixed a bug with offsets being handled improperly in | mrb0nk500 | |
`set_config_opt()`. | |||
2021-06-07 | Fixed a segfault in `parse_config()`. | mrb0nk500 | |