summary refs log tree commit diff stats
path: root/user/settings
diff options
context:
space:
mode:
authorAlan Pearce2023-06-09 07:10:43 +0200
committerAlan Pearce2023-06-09 07:10:43 +0200
commit5f2b28d1ca29bd230b7f1085e044d703e69e8fba (patch)
tree5cd8c9e5bce5d2b22cbdba2e9a73a9a1fea36421 /user/settings
parent13772fda4c8cb747a00218f4d700fbe288b2f4c8 (diff)
downloadnixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.tar.lz
nixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.tar.zst
nixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.zip
git: add subcommand to get root of repository
Diffstat (limited to 'user/settings')
-rw-r--r--user/settings/git.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/settings/git.nix b/user/settings/git.nix
index d4ae894f..960e55fc 100644
--- a/user/settings/git.nix
+++ b/user/settings/git.nix
@@ -68,6 +68,7 @@
       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"