diff options
| author | 2026-03-06 08:05:51 +0800 | |
|---|---|---|
| committer | 2026-03-06 10:00:35 +0800 | |
| commit | e15054a4f93fc54806e84aa7036e60168e78e823 (patch) | |
| tree | b576dcb1d3368324e7ca73ca0fe79dd8865c5524 /format/commitgraph/mode.go | |
| parent | internal/intconv: Add Uint32ToUint8 (diff) | |
| signature | No signature | |
format/commitgraph: Add initial commit-graph support
Diffstat (limited to 'format/commitgraph/mode.go')
| -rw-r--r-- | format/commitgraph/mode.go | 11 |
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 +) |
