Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ We use [GitHub Actions](https://github.com/lusingander/serie/blob/master/.github

Improvements to the commit graph are welcome.

Tests for the commit graph are conducted in [./tests/graph.rs](./tests/graph.rs).
Tests for the commit graph are conducted in [./src/tests/graph.rs](./src/tests/graph.rs).

Running the tests will output images and the test repository to `./out/graph`.
If you add new test cases, please add these images under `./tests/graph/`.
Expand Down
10 changes: 0 additions & 10 deletions src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,6 @@ impl From<&str> for CommitHash {
}
}

#[derive(Debug, Default, Clone)]
pub enum CommitType {
#[default]
Commit,
Stash,
}

#[derive(Debug, Default, Clone)]
pub struct Commit {
pub commit_hash: CommitHash,
Expand All @@ -48,7 +41,6 @@ pub struct Commit {
pub subject: String,
pub body: String,
pub parent_commit_hashes: Vec<CommitHash>,
pub commit_type: CommitType,
}

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
Expand Down Expand Up @@ -325,7 +317,6 @@ fn load_all_commits(
subject: parts[7].into(),
body: parts[8].into(),
parent_commit_hashes: parse_parent_commit_hashes(parts[9]),
commit_type: CommitType::Commit,
};

commits.push(commit);
Expand Down Expand Up @@ -375,7 +366,6 @@ fn load_all_stashes(path: &Path, mailmap: bool) -> Vec<Commit> {
subject: parts[7].into(),
body: parts[8].into(),
parent_commit_hashes: parse_parent_commit_hashes(parts[9]),
commit_type: CommitType::Stash,
};

commits.push(commit);
Expand Down
5 changes: 0 additions & 5 deletions src/graph/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ impl<'a> GraphImageManager<'a> {
}
}

#[derive(Debug, Default)]
pub struct GraphImage {
pub images: FxHashMap<Vec<Edge>, GraphRowImage>,
}

pub struct GraphRowImage {
pub bytes: Vec<u8>,
pub cell_count: usize,
Expand Down
214 changes: 0 additions & 214 deletions src/lib.rs

This file was deleted.

Loading