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:
parent
cb73153fd0
commit
7d1809ba57
6 changed files with 167 additions and 84 deletions
|
|
@ -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 },
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue