From e15054a4f93fc54806e84aa7036e60168e78e823 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Fri, 6 Mar 2026 08:05:51 +0800 Subject: format/commitgraph: Add initial commit-graph support --- format/commitgraph/mode.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 format/commitgraph/mode.go (limited to 'format/commitgraph/mode.go') 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 +) -- cgit v1.3.1-10-gc9f91