MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / cmp

Method cmp

atomic-cli/src/commands/git/parallel.rs:1924–1929  ·  view source on GitHub ↗
(&self, other: &Self)

Source from the content-addressed store, hash-verified

1922 // BinaryHeap is a max-heap; Reverse the desired (oldest, lowest-OID) order.
1923 impl Ord for ReadyEntry {
1924 fn cmp(&self, other: &Self) -> CmpOrdering {
1925 other
1926 .committer_time
1927 .cmp(&self.committer_time)
1928 .then_with(|| other.oid.as_bytes().cmp(self.oid.as_bytes()))
1929 }
1930 }
1931
1932 let collected: HashSet<Oid> = commit_oids.iter().copied().collect();

Callers 15

view_listFunction · 0.45
newMethod · 0.45
gather_candidatesMethod · 0.45
resolve_and_rankFunction · 0.45
render_treeFunction · 0.45
node_detailsFunction · 0.45
sort_rowsFunction · 0.45
compare_human_keysFunction · 0.45
compileMethod · 0.45
observe_head_treeFunction · 0.45
observe_indexFunction · 0.45
git_tree_entry_orderFunction · 0.45

Calls 1

as_bytesMethod · 0.45

Tested by

no test coverage detected