9b970835c8
refactor: clean up eprintln use
2024-06-13 20:00:04 +01:00
588666ffe1
tests: add more tests to git crate
2024-06-13 19:50:19 +01:00
926851db19
refactor: rewrite git crate's mock repository
2024-06-09 10:02:57 +01:00
dcd94736a9
refactor: git::push::reset takes all params as refs
2024-06-09 09:49:54 +01:00
c6a1d2c21b
refactor: merge git::branch module into git::push
2024-06-09 09:49:54 +01:00
621e599b31
refactor: git: use thiserror and cleanup errors
2024-06-03 20:31:39 +01:00
c189aa3ad3
test: add more tests to forge-forgejo crate
2024-06-02 18:55:02 +01:00
46b6d8680c
feat: Add support for GitHub
...
This doesn't include GitHub Enterprise
Closes kemitix/git-next#86
2024-05-31 07:23:48 +01:00
012668dd0a
refactor: move git::remote_branches to git crate
2024-05-28 06:37:08 +01:00
f259179274
refactor: move git::read_file implementation to git crate
2024-05-26 18:22:15 +01:00
d0638fdbc4
refactor: move repo_clone implementation to git crate
2024-05-26 13:30:46 +01:00
f10dc25aeb
refactor: merge git::validate module into git::validation
2024-05-26 09:20:08 +01:00
3642b2cdd1
fix: new commit_log matches original from API request
...
The original was including a lot of extra commits, those are now trimmed
to match the expected.
2024-05-25 20:36:24 +01:00
7a0247ea03
refactor: get commit log from local repo (step 1)
...
Avoid using a forge-specific API to get a commit log when the
information is already available locally in the cloned repo through a
generic git command.
The commit adds the new method of getting the commit log and compares it
with the original methods, logging if they match or not.
The updated results are returned only if they match.
2024-05-25 08:10:02 +01:00
341dc97a51
refactor(git): add mock repository and tests
...
Repository is now behind an enum to allow selection of a mock Repsitory
for use in tests.
2024-05-21 19:47:01 +01:00
c3c4c41c73
refactor(git): only expose OpenRepository from repository::open
2024-05-20 07:46:21 +01:00
70100f6dc5
refactor(git): reporitory errors don't leak implementation
2024-05-20 07:43:03 +01:00
155497c97f
refactor(git): split mock, real and open into their files
2024-05-20 07:42:52 +01:00