~kaction/config

bd83900251b2478f4863aa288b5c68d655e63eba — Dmitry Bogatov 3 months ago 753b515
Recover git-logp script
2 files changed, 8 insertions(+), 1 deletions(-)

M manifest/default.nix
M manifest/user/git.conf
M manifest/default.nix => manifest/default.nix +7 -1
@@ 1,5 1,5 @@
{ writeText, runCommandLocal, dhall-json, stdenv, callPackage, mk-passwd,
  substituteAll, git, perl, doas }:
  substituteAll, git, perl, doas, writeScript, execline }:
let
  symlink = path: {
    action = "symlink";


@@ 56,6 56,12 @@ let
        "/home/kaction/.config/dbxcli/auth.json" = symlink ./secret/dbx.json;
        "/home/kaction/.config/git/config" = symlink (substituteAll {
          src = ./user/git.conf;
          logp = writeScript "logp" ''
            #!${execline}/bin/execlineb -WS0
            pipeline
              { git log -p --color=always --decorate=short $@ }
                less -R -p"^commit [0-9a-f]{40}"
          '';
          inherit perl git;
        });
        "/home/kaction/.config/git/ignore" = symlink ./user/gitignore;

M manifest/user/git.conf => manifest/user/git.conf +1 -0
@@ 8,6 8,7 @@
	log-fetched = log ORIG_HEAD.. --stat --no-merges
	new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
	co = checkout
	logp = !@logp@
	pretend = diff --cached
	stat = !git --no-pager diff --stat
	over = !git --no-pager log --oneline --max-count=12