Skip to content

Commit

Permalink
Expose where the dot is when parsing a commit line
Browse files Browse the repository at this point in the history
Add exposing the "dot"-position.  This is required for a later add-on
to support "PowerCursors".
  • Loading branch information
kaste committed Dec 8, 2023
1 parent c4f668c commit 2c94b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/log_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
COMMIT_NODE_CHAR_OPTIONS = "●*"
GRAPH_CHAR_OPTIONS = r" /_\|\-\\."
COMMIT_LINE = re.compile(
r"^[{graph_chars}]*[{node_chars}][{graph_chars}]* "
r"^[{graph_chars}]*(?P<dot>[{node_chars}])[{graph_chars}]* "
r"(?P<commit_hash>[a-f0-9]{{5,40}}) +"
r"(\((?P<decoration>.+?)\))?"
.format(graph_chars=GRAPH_CHAR_OPTIONS, node_chars=COMMIT_NODE_CHAR_OPTIONS)
Expand Down

0 comments on commit 2c94b41

Please sign in to comment.