summaryrefslogtreecommitdiff
path: root/git.h
AgeCommit message (Collapse)Author
2022-08-06git: Add `get_pr_type()` keyword getter callbackmrb0nk500
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-05keyword: Add `get_keyword_cb`, and add `get_callback` to `struct keyword`mrb0nk500
This will be used for creating a getter callback for keywords. I also renamed `keyword_cb` to `set_keyword_cb`, aswell as renamed `callback` to `set_callback` in `struct keyword`.
2022-08-05git: 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-05git: 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-01git, keyword: Move `parse_key_value_file()` to `keyword.{c,h}`mrb0nk500
2022-08-01git: Make `parse_key_value_file()` externally accessablemrb0nk500
2022-08-01git: Add `merge-branch` keyword to list of info file keywordsmrb0nk500
2022-08-01git: Make `merge_branch` a string instead of a `git_branch *`mrb0nk500
2022-08-01git: Add `parse_remote_branch()` callbackmrb0nk500
This needs to be done in order to properly allocate the remote branch before setting it's members.
2022-07-31git: Add support for specifying the name of a repo when getting, andmrb0nk500
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-31pullreqd, 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-31git: Add `git_repo` structmrb0nk500
This will be used to replace most instances of `git_repository`.
2022-07-30git: Add `cleanup_pull_request()`mrb0nk500
2022-07-30git: Add missing extern definition for `get_pull_request()`mrb0nk500
2022-07-28everywhere: Fix compiler errors, compiler warnings, and correct typosmrb0nk500
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: Update definition of `create_pull_request_dir()` in `git.h`mrb0nk500
Forgot to do that when first implementing the index related stuff.
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: Remove definition of `index` struct from `git.h`mrb0nk500
oof, forgot to commit this when moving all the index related stuff to `index.{c,h}`.
2022-07-26git, index: Move index related functions to `index.{c,h}`mrb0nk500
2022-07-13git: Add index typemrb0nk500
An index is a type of identifier that'll be used for identifying PR's. Indexes can either be named, or numbered, and can also contain another index within them, with each subsequent index being seperated by '-'s.
2021-06-27Added externs for `add_comment()`, andmrb0nk500
`create_pull_request_dir()` in `git.h`.
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-26Make `date` a `time_t`.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-13Include `git.h` in `pullreqd.c`.mrb0nk500
Also added the necessary externs.
2021-06-13Added the `git_repo` struct.mrb0nk500
This is a linked list, that will be temporarily be used by `init_git()`.
2021-06-12Start work on the git related code.mrb0nk500