Files
home-manager/modules/lib/git.nix
Ihar Hrachyshka 3c7524c683 treewide: set git pager for specific commands, not for core.pager
Setting `core.pager` may result in issues like swallowed `git grep` results. 
To avoid this, apply pagers to specific commands where we expect `diff`-ish output only. 
Use a common helper to set pager for all modules that configure it.
2026-04-14 11:31:44 -05:00

12 lines
145 B
Nix

{ lib }:
{
diffPagerConfig = pagerCommand: {
pager = lib.genAttrs [
"diff"
"log"
"show"
] (_: pagerCommand);
};
}