History

repo: make `RewriteType` private

Looks like I forgot this in some recent refactoring. I don't really see any harm in making the type public later. I might want to make `rebase_descendants()` not clear `parent_mapping` and instead provide a way of accessing it afterwards (removing the need for the `_return_map()` flavors). We'll see if that ends up happening. For now it can be private anyway.

Martin von Zweigbergk committed 2 years ago

Commit c6bb94d1 parent 029a6001 file · +1 −1Browse files

Showing the changes to lib/src (1 of 1 file). Show all

Unified · Split

lib/src/repo.rs+1−1
@@ -762,7 +762,7 @@ impl RepoLoader { · 761 unmodified lines
762}762}
763 763
764#[derive(Clone, Copy, Debug, PartialEq, Eq)]764#[derive(Clone, Copy, Debug, PartialEq, Eq)]
765pub(crate) enum RewriteType {765enum RewriteType {
766 Rewritten,766 Rewritten,
767 Divergent,767 Divergent,
768 Abandoned,768 Abandoned,