refactor: switch git blame to incremental output mode

Also, move blame parser and related structures to a new module VcsBlame.

This includes a full parser re-write to take advantage of the slightly
more efficient incremental output format.
This commit is contained in:
CJ van den Berg 2026-01-26 21:38:15 +01:00
parent cb73153fd0
commit 7d1809ba57
6 changed files with 167 additions and 84 deletions

View file

@ -418,6 +418,11 @@ pub fn build_exe(
.imports = &.{},
});
const VcsBlame_mod = b.createModule(.{
.root_source_file = b.path("src/VcsBlame.zig"),
.imports = &.{},
});
const color_mod = b.createModule(.{
.root_source_file = b.path("src/color.zig"),
});
@ -449,6 +454,7 @@ pub fn build_exe(
.{ .name = "TypedInt", .module = TypedInt_mod },
.{ .name = "vaxis", .module = vaxis_mod },
.{ .name = "file_type_config", .module = file_type_config_mod },
.{ .name = "VcsBlame", .module = VcsBlame_mod },
},
});