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
762762 }
763763
764764 #[derive(Clone, Copy, Debug, PartialEq, Eq)]
765−pub(crate) enum RewriteType {
765+enum RewriteType {
766766 Rewritten,
767767 Divergent,
768768 Abandoned,