Skip to content

Commit 1322dbf

Browse files
committed
feat: support for object replacement (#364)
The Repository now respects replacement refs created by `git replace` and picks up environment variables for its configuration as well. Which environment variables are used is fully configurable.
1 parent 6a27985 commit 1322dbf

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

crate-status.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
* [x] perfect scaling with cores
9090
* [x] support for pack caches, object caches and MRU for best per-thread performance.
9191
* [x] prefix/short-id lookup
92+
* [x] object replacements (`git replace`)
9293
* **sink**
9394
* [x] write objects and obtain id
9495
* **alternates**
@@ -402,6 +403,7 @@ See its [README.md](https://github.com/Byron/gitoxide/blob/main/git-lock/README.
402403
* [ ] worktrees
403404
* [ ] remotes with push and pull
404405
* [x] mailmap
406+
* [x] object replacements (`git replace`)
405407
* [ ] configuration
406408
* [ ] merging
407409
* [ ] stashing

git-repository/src/open.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ impl Options {
7575
self
7676
}
7777

78+
// TODO: tests
7879
/// Configure replacement objects, see the [`ReplacementObjects`] type for details.
7980
pub fn replacement_objects(mut self, config: ReplacementObjects) -> Self {
8081
self.replacement_objects = config;

0 commit comments

Comments
 (0)