This repository was archived by the owner on Sep 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
codeintel/uploads/internal/commitgraph Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ func TestCalculateVisibleUploads(t *testing.T) {
32
32
// +--- g
33
33
//
34
34
// NOTE: The input to ParseCommitGraph must match the order and format
35
- // of `git log --topo-sort `.
35
+ // of `git log --pretty="%H %P" -- topo-order `.
36
36
testGraph := gitdomain .ParseCommitGraph ([]string {
37
37
"n l" ,
38
38
"m k" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ func (c *CommitGraph) Order() []string { return c.order }
17
17
// before children. If a commit is listed but has no ancestors then its parent
18
18
// slice is empty, but is still present in the map and the ordering. If the
19
19
// ordering is to be correct, the git log output must be formatted with
20
- // -- topo-order.
20
+ // `git log --pretty="%H %P" -- topo-order` .
21
21
func ParseCommitGraph (lines []string ) * CommitGraph {
22
22
// Process lines backwards so that we see all parents before children. We get a
23
23
// topological ordering by simply scraping the keys off in this order.
You can’t perform that action at this time.
0 commit comments