Age | Commit message (Collapse) | Author |
|
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`.
|
|
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`.
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
|
|
This needs to be done in order to properly allocate the remote branch
before setting it's members.
|
|
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.
|
|
`git_repo`
This is done in order to make it easier to get the name of the repo.
|
|
This will be used to replace most instances of `git_repository`.
|
|
|
|
|
|
|
|
`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.
|
|
Forgot to do that when first implementing the index related stuff.
|
|
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.
|
|
oof, forgot to commit this when moving all the index related stuff to
`index.{c,h}`.
|
|
|
|
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.
|
|
`create_pull_request_dir()` in `git.h`.
|
|
|
|
|
|
|
|
instances of `git_reference` with it.
|
|
These structs are used for accepting, rejecting,
creating, sending, and receiving pull requests.
|
|
Also added the necessary externs.
|
|
This is a linked list, that will be temporarily be
used by `init_git()`.
|
|
|