From df73a4c6f1b58075316ba7449fbfb127b9fbb79d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 29 Mar 2026 14:42:13 +0000 Subject: commitquery: Reorganize --- commitquery/mark_bits.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 commitquery/mark_bits.go (limited to 'commitquery/mark_bits.go') diff --git a/commitquery/mark_bits.go b/commitquery/mark_bits.go new file mode 100644 index 00000000..b10c833b --- /dev/null +++ b/commitquery/mark_bits.go @@ -0,0 +1,17 @@ +package commitquery + +// markBits stores one set of traversal marks on one node. +type markBits uint8 + +// markLeft, markRight, markStale, and markResult track traversal state. +const ( + markLeft markBits = 1 << iota + markRight + markStale + markResult +) + +// allMarks is the union of all defined mark bits. +const ( + allMarks = markLeft | markRight | markStale | markResult +) -- cgit v1.3.1-10-gc9f91