all repos — nixfiles @ 5f2b28d1ca29bd230b7f1085e044d703e69e8fba

System and user configuration, managed by nix and home-manager

git: add subcommand to get root of repository
Alan Pearce alan@alanpearce.eu
Fri, 09 Jun 2023 07:10:43 +0200
commit

5f2b28d1ca29bd230b7f1085e044d703e69e8fba

parent

13772fda4c8cb747a00218f4d700fbe288b2f4c8

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M user/settings/git.nixuser/settings/git.nix
@@ -68,6 +68,7 @@ pending = "!sh -c 'git log --oneline --grep=\"#\" ...$(git lasttag)'";       lg = "log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %Cred%d%Creset'";
       prl = "log --pretty=format:'%Cred%h%Creset -%Creset %s %Cgreen(%cr) %C(bold blue)<%an> %Cred%d%Creset'  --grep='#'";
       ignored = "ls-files --others -i --exclude-standard";
+      root = "rev-parse --show-toplevel";
     };
     ignores = [
       ".DS_Store"