summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-06-30Added a check to see if `commits` is non-NULL.mrb0nk500
2021-06-30Moved assignment of `pr_dir` to before the creation ofmrb0nk500
the info file.
2021-06-27Fixed a typo in `add_comment()`.mrb0nk500
2021-06-27Added externs for `add_comment()`, andmrb0nk500
`create_pull_request_dir()` in `git.h`.
2021-06-27Added `add_comment()`.mrb0nk500
This function adds the supplied comment to the `comments` file located in the PR's root directory.
2021-06-27Renamed `info_buf` to `file_buf` inmrb0nk500
`create_info_file()`.
2021-06-27Renamed `info` to `filename` in `create_info_file()`.mrb0nk500
2021-06-27Renamed `pr_dir` to `pr_root` in `create_info_file()`.mrb0nk500
2021-06-27Added the `id`, and `reply` members to `comment`.mrb0nk500
2021-06-27Changed `date` from `int` to `time_t` in `comment`.mrb0nk500
2021-06-27Fixed some typos in `create_info_file()`.mrb0nk500
2021-06-27Renamed `create_info()` to `create_info_file()`.mrb0nk500
2021-06-26Added the file write, and close in `create_info()`.mrb0nk500
2021-06-26Added the code for printing the info file contents tomrb0nk500
the buffer.
2021-06-26Include `stdarg.h` in `misc.c`.mrb0nk500
2021-06-26Added `get_info_len()`.mrb0nk500
This function gets the length of the contents of the info file to make.
2021-06-26Added `format_len()`.mrb0nk500
2021-06-26Make `date` a `time_t`.mrb0nk500
2021-06-26Added some more error checking in `create_info()`.mrb0nk500
2021-06-25Added some more log messages inmrb0nk500
`create_pull_request_dir()`.
2021-06-25Change the log types from `LOG_INFO` to `LOG_NOTICE`mrb0nk500
in `create_info()`.
2021-06-25Started work on `create_info()`.mrb0nk500
2021-06-25Remove the TODO in `create_pull_request_dir()`.mrb0nk500
2021-06-25Add error checking, and move the code for getting themrb0nk500
PR path, and getting the patch files to after the error checks.
2021-06-25Allow `create_pull_request_dir()` to use either themrb0nk500
ID, or title of the PR as the directory name.
2021-06-23Fixed another typo in `dir_path_num()`.mrb0nk500
2021-06-23Fixed a typo in `dir_path_num()`.mrb0nk500
2021-06-23Fixed a typo in `misc.h`.mrb0nk500
Forgot to add a semicolon to one of the externs.
2021-06-23Added externs for all the new functions in `misc.c`.mrb0nk500
2021-06-23Added `sanitize_strlen()`, and `sanitize_str()`.mrb0nk500
`sanitize_str()` creates a string with each starting space replaced by a hyphen, and with all trailing spaces, and periods removed. `sanitize_strlen()` gets the length of the sanatized version of the supplied string.
2021-06-23Added `delm_span()`.mrb0nk500
2021-06-23Added 'dir_path_num()', and `dir_path_name()`.mrb0nk500
2021-06-18Include `ctype.h` in `git.c`.mrb0nk500
2021-06-18Removed the code that's now in `misc.c` frommrb0nk500
`config.c`. Forgot to remove it. lol
2021-06-18Added code for creating format patch files of eachmrb0nk500
commit of a pull request.
2021-06-18Move all miscellaneous functions from `config.c` intomrb0nk500
`misc.c`.
2021-06-18Replace all instances of `malloc()` with `calloc()`mrb0nk500
in `config.c`.
2021-06-18Removed unnecessary `memset()` in `read_file()`, andmrb0nk500
replaced `malloc()` with `calloc()`.
2021-06-17Start work on some of the pull request handling code.mrb0nk500
2021-06-15Added the `git_branch` struct, and replaced allmrb0nk500
instances of `git_reference` with it.
2021-06-15Added `pull_request`, `file`, and `comment` structs.mrb0nk500
These structs are used for accepting, rejecting, creating, sending, and receiving pull requests.
2021-06-15Added include for `strings.h`.mrb0nk500
This is because `strcasecmp()` is technically in `strings.h`, rather than `string.h`.
2021-06-13Added a placeholder for the git root in `test.conf`.mrb0nk500
2021-06-13Fixed a typo with appending the directory name to themrb0nk500
git root, and also comment out a debug log message. I forgot to add a `/` oof.
2021-06-13Fixed a stupid bug with not freeing the linked list.mrb0nk500
2021-06-13Added the `repos` parameter to both `main_loop()`, andmrb0nk500
`cleanup()`, and also call the git initialization code in the main program.
2021-06-13Added `cleanup_git()`.mrb0nk500
This function cleans up the initialized git state.
2021-06-13Include `git.h` in `pullreqd.c`.mrb0nk500
Also added the necessary externs.
2021-06-13Tell gcc to stop complaining about `readdir_r()` beingmrb0nk500
deprecated.
2021-06-13Link with libgit2 now.mrb0nk500