Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-08-06 | git: Make use of `create_key_value_file()` in `create_info_file()` | mrb0nk500 | |
This greatly simplifies the code for it, and helps make the codebase more generic. | |||
2022-08-06 | git: Fix an issue with `get_patch_list()` not properly adding whitespace | mrb0nk500 | |
2022-08-06 | git: Add `get_pr_type()` keyword getter callback | mrb0nk500 | |
This callback is needed because `pr_type` is a `uint8_t`, but the keyword type is `TYPE_INT` which assumes that the type is an `int`. | |||
2022-08-05 | git: Add `get_keyword_cb` getter callbacks | mrb0nk500 | |
2022-08-05 | git: Don't return an error when the patch file array is NULL in | mrb0nk500 | |
`create_pull_request_dir()` This is because we won't be creating patch files for remote branches. | |||
2022-08-05 | git: Don't check if `pr->branch->name` isn't empty in | mrb0nk500 | |
`create_pull_request_branch()` We don't need to do this anymore, since `dir_path_name()` now does that. | |||
2022-08-05 | git: Add `create_pull_request_branch()` | mrb0nk500 | |
This takes in the PR, the index of that PR, and the repo the PR is for, and will create a branch for that PR in the given repo. Currently it only supports working with remote branches, but eventually it'll support patch files too. | |||
2022-08-05 | git: Add `get_repo()` | mrb0nk500 | |
This function takes a null-terminated `git_repo` array, and the name of the repo to get, and will return said repo if found, and NULL if not. | |||
2022-08-04 | git: Use `is_empty()`, and `find_delm(),` rather than doing it manually | mrb0nk500 | |
in `parse_dsv_str()` | |||
2022-08-01 | git: Make sure `pr->merge_branch` uses `free()` instead of | mrb0nk500 | |
`free_git_branch()` Forgot to commit this when changing `merge_branch` to a string. | |||
2022-08-01 | git, keyword: Move `parse_key_value_file()` to `keyword.{c,h}` | mrb0nk500 | |
2022-08-01 | git: Make `parse_key_value_file()` externally accessable | mrb0nk500 | |
2022-08-01 | git: Replace all uses of `parse_colon_key_value_file()` with | mrb0nk500 | |
`parse_key_value_file()` | |||
2022-08-01 | git: Rename `parse_colon_key_value_file()` to `parse_key_value_file()`, | mrb0nk500 | |
and make it more generic This will allow us to parse pretty much anything with a key, value pair seperated by some delimiter(s). | |||
2022-08-01 | git: Add `parse_remote_branch()` callback | mrb0nk500 | |
This needs to be done in order to properly allocate the remote branch before setting it's members. | |||
2022-07-31 | git: Add support for specifying the name of a repo when getting, and | mrb0nk500 | |
creating PRs This allows for repos to have their own set of PRs, rather than only having a global set of PRs. Although, if you leave the repo name empty, then it will treat it as a global PR, rather than a repo specific PR. | |||
2022-07-31 | git: Make use of both `is_dir()`, and `mkdirp()` in | mrb0nk500 | |
`create_pull_request_dir()` | |||
2022-07-31 | git: Use `format_len()` instead of `strlen()` when creating the repo | mrb0nk500 | |
path in `init_git()` | |||
2022-07-31 | pullreqd, git: Replace every current instance of `git_repository` with ↵ | mrb0nk500 | |
`git_repo` This is done in order to make it easier to get the name of the repo. | |||
2022-07-31 | git: Use `linked_list_to_array()` to add create the repo table, rather | mrb0nk500 | |
than doing it manually in `init_git` | |||
2022-07-30 | git: Add `cleanup_pull_request()` | mrb0nk500 | |
2022-07-30 | git: Properly sanitize, and format the patch file name in | mrb0nk500 | |
`parse_patch_list()` | |||
2022-07-30 | git: Make sure `f->name` is NULL before freeing `f` in | mrb0nk500 | |
`parse_{comments,info}_file_path` | |||
2022-07-30 | git: Check if either `lhs`, or `buf` are empty in | mrb0nk500 | |
`parse_colon_key_value_file()` | |||
2022-07-30 | git: Replace `filename` with `path` in `create_file()` | mrb0nk500 | |
2022-07-28 | everywhere: Fix compiler errors, compiler warnings, and correct typos | mrb0nk500 | |
2022-07-28 | index: rename typedef `index` to `index_t` | mrb0nk500 | |
This had to be done because `index()` is a function in the standard library. | |||
2022-07-28 | keyword: 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-28 | git: 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-27 | git: 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-26 | git: Add `create_file()` | mrb0nk500 | |
2022-07-26 | git, index: Move index related functions to `index.{c,h}` | mrb0nk500 | |
2022-07-24 | git: Remove reason string reference from `is_valid_index()` | mrb0nk500 | |
2022-07-13 | git: Use an index instead of an id for creating PR directories | mrb0nk500 | |
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-01 | Fixed a typo in `create_pull_request_dir()`. | mrb0nk500 | |
2021-08-01 | Removed a free to a non-existent variable in | mrb0nk500 | |
`create_pull_request_dir()`. Forgot about thatm lol. | |||
2021-08-01 | Replace all instances of `dir_path_name()`, with | mrb0nk500 | |
`sanitized_dir_path_name()` in `create_pull_request_dir()`. | |||
2021-08-01 | Fixed 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-01 | Set return value to zero, if the PR ID is negative in | mrb0nk500 | |
`create_pull_request_dir()`. | |||
2021-08-01 | Move the creation of the info file to after the | mrb0nk500 | |
PR directory check in `create_pull_request_dir()`. | |||
2021-08-01 | Fixed a typo in `create_pull_request_dir()`. | mrb0nk500 | |
2021-08-01 | Added `free_files()`, and `free_file()`. | mrb0nk500 | |
2021-08-01 | Added `get_branch_commits()`. | mrb0nk500 | |
It's currently a stub, but, I added it in order to at least get it to compile. | |||
2021-08-01 | Fixed typo in `create_info_file()`. | mrb0nk500 | |
> mfw copy paste error | |||
2021-07-11 | Replace `%c` in the time format string with the RFC | mrb0nk500 | |
2822 date format. | |||
2021-07-03 | Use the filename created by `create_num_str()`, rather | mrb0nk500 | |
than the patch filename itself. | |||
2021-06-30 | Fixed a typo in `get_comment_len()`. | mrb0nk500 | |
2021-06-30 | Add `get_comment_len()`. | mrb0nk500 | |
2021-06-30 | Seperate each PR comment by one blank line in | mrb0nk500 | |
`add_comment()`. | |||
2021-06-30 | Added a check to see if `commits` is non-NULL. | mrb0nk500 | |