From 7ef504d14b1c1e2177b2a332822dc112a4bf40ce Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 17 May 2023 00:26:04 +0000 Subject: [PATCH] git: configure a better log format --- hosts/common/programs/git.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/common/programs/git.nix b/hosts/common/programs/git.nix index 11a24413..dba35ab5 100644 --- a/hosts/common/programs/git.nix +++ b/hosts/common/programs/git.nix @@ -5,14 +5,22 @@ let in { sane.programs.git.fs.".config/git/config".symlink.text = mkCfg { + # top-level options documented: + # - + user.name = "Colin"; user.email = "colin@uninsane.org"; + alias.co = "checkout"; + # difftastic docs: # - diff.tool = "difftastic"; difftool.prompt = false; "difftool \"difftastic\"".cmd = ''${pkgs.difftastic}/bin/difft "$LOCAL" "$REMOTE"''; # now run `git difftool` to use difftastic git + + # render dates as YYYY-MM-DD HH:MM:SS +TZ + log.date = "iso"; }; }