Skip to content

Commit 98d90b2

Browse files
Implement version control and change log for problem files (#47)
* feat: implement version control and change log for problem files using git2 * refactor: Remove accepted, rejected subdirectory in solution * fix: cargo fmt * fix: Set git repository config * fix: Update error message and comments * refactor: extract default directory names to a constant array * refactor: simplify get_repository error handling using and_then and with_context * refactor: Move git user config setup from get_repository to git_init
1 parent ce1547a commit 98d90b2

File tree

3 files changed

+395
-1
lines changed

3 files changed

+395
-1
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@ name = "coduck-backend"
1414
anyhow = "1.0"
1515
axum = { version = "0.8.4", features = ["json", "multipart"] }
1616
chrono = { version = "0.4.38", features = ["serde"] }
17-
reqwest = { version = "0.12.19", features = ["json", "rustls-tls"] }
17+
git2 = "0.20.2"
1818
serde = { version = "1.0.219", features = ["derive"] }
1919
serde_json = "1.0.133"
2020
tokio = { version = "1.45.1", features = ["full"] }
2121
uuid = { version = "1.17.0", features = ["v4"] }
2222

2323
[dev-dependencies]
24+
reqwest = { version = "0.12.19", features = ["json", "rustls-tls"] }
2425
rstest = "0.25.0"

0 commit comments

Comments
 (0)