mergiraf: Prevent warnings related unmanaged VCSs

Add a guard to prevent people from getting warnings related to VCSs they
don't use.
This commit is contained in:
Max Cabrajac 2026-03-12 00:59:52 -03:00 committed by Austin Horstman
parent 4aeef1941f
commit be0c641a6a
2 changed files with 12 additions and 2 deletions

View file

@ -53,6 +53,7 @@ in
lib.optionals
(
cfg.enable
&& config.programs.git.enable
&& !lib.versionAtLeast config.home.stateVersion "26.05"
&& options.programs.mergiraf.enableGitIntegration.highestPrio >= 1500
)
@ -68,6 +69,7 @@ in
lib.optionals
(
cfg.enable
&& config.programs.jujutsu.enable
&& !lib.versionAtLeast config.home.stateVersion "26.05"
&& options.programs.mergiraf.enableJujutsuIntegration.highestPrio >= 1500
)