aboutsummaryrefslogtreecommitdiff
path: root/format/commitgraph/mode.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-06 08:05:51 +0800
committerGravatar Runxi Yu2026-03-06 10:00:35 +0800
commite15054a4f93fc54806e84aa7036e60168e78e823 (patch)
treeb576dcb1d3368324e7ca73ca0fe79dd8865c5524 /format/commitgraph/mode.go
parentinternal/intconv: Add Uint32ToUint8 (diff)
signatureNo signature
format/commitgraph: Add initial commit-graph support
Diffstat (limited to 'format/commitgraph/mode.go')
-rw-r--r--format/commitgraph/mode.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/format/commitgraph/mode.go b/format/commitgraph/mode.go
new file mode 100644
index 00000000..71b55412
--- /dev/null
+++ b/format/commitgraph/mode.go
@@ -0,0 +1,11 @@
+package commitgraph
+
+// OpenMode controls which commit-graph layout Open loads.
+type OpenMode uint8
+
+const (
+ // OpenSingle opens one commit-graph file at info/commit-graph.
+ OpenSingle OpenMode = iota
+ // OpenChain opens chained commit-graphs from info/commit-graphs.
+ OpenChain
+)