summaryrefslogtreecommitdiff
path: root/git.c
AgeCommit message (Collapse)Author
2022-07-30git: Replace `filename` with `path` in `create_file()`mrb0nk500
2022-07-28everywhere: Fix compiler errors, compiler warnings, and correct typosmrb0nk500
2022-07-28index: rename typedef `index` to `index_t`mrb0nk500
This had to be done because `index()` is a function in the standard library.
2022-07-28keyword: Make `keyword_cb`, and `set_keyword()` return an `int`mrb0nk500
`set_keyword()` now checks the return value of the callback to determine whether to return early, fallback to the default, or return an error if the callback returns true, false, and -1 respectivly.
2022-07-28git: Implement all of `get_pull_request()`mrb0nk500
`get_pull_request()` takes an index, and the main PR root, and returns the PR of the supplied index if it exists, or NULL if no PR with that index exists.
2022-07-27git: Replace all uses of `git_repo` with the more generic `linked_list`mrb0nk500
We don't need a type specific linked list anymore, so we can just get rid of it, plus it makes the code much cleaner in the process.
2022-07-26git: Add `create_file()`mrb0nk500
2022-07-26git, index: Move index related functions to `index.{c,h}`mrb0nk500
2022-07-24git: Remove reason string reference from `is_valid_index()`mrb0nk500
2022-07-13git: Use an index instead of an id for creating PR directoriesmrb0nk500
PR's will now be identified by index, rather than by id. If no index is found, then it falls back to using the PR title as the directory name.
2021-08-01Fixed a typo in `create_pull_request_dir()`.mrb0nk500
2021-08-01Removed a free to a non-existent variable inmrb0nk500
`create_pull_request_dir()`. Forgot about thatm lol.
2021-08-01Replace all instances of `dir_path_name()`, withmrb0nk500
`sanitized_dir_path_name()` in `create_pull_request_dir()`.
2021-08-01Fixed a bug in `create_pull_request_dir()`.mrb0nk500
The patch file(s) were being created in the current working directory, rather than the PR directory.
2021-08-01Set return value to zero, if the PR ID is negative inmrb0nk500
`create_pull_request_dir()`.
2021-08-01Move the creation of the info file to after themrb0nk500
PR directory check in `create_pull_request_dir()`.
2021-08-01Fixed a typo in `create_pull_request_dir()`.mrb0nk500
2021-08-01Added `free_files()`, and `free_file()`.mrb0nk500
2021-08-01Added `get_branch_commits()`.mrb0nk500
It's currently a stub, but, I added it in order to at least get it to compile.
2021-08-01Fixed typo in `create_info_file()`.mrb0nk500
> mfw copy paste error
2021-07-11Replace `%c` in the time format string with the RFCmrb0nk500
2822 date format.
2021-07-03Use the filename created by `create_num_str()`, rathermrb0nk500
than the patch filename itself.
2021-06-30Fixed a typo in `get_comment_len()`.mrb0nk500
2021-06-30Add `get_comment_len()`.mrb0nk500
2021-06-30Seperate each PR comment by one blank line inmrb0nk500
`add_comment()`.
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 `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-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-26Added `get_info_len()`.mrb0nk500
This function gets the length of the contents of the info file to make.
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-18Include `ctype.h` in `git.c`.mrb0nk500
2021-06-18Added code for creating format patch files of eachmrb0nk500
commit of a pull request.
2021-06-17Start work on some of the pull request handling code.mrb0nk500
2021-06-15Added include for `strings.h`.mrb0nk500
This is because `strcasecmp()` is technically in `strings.h`, rather than `string.h`.
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