diff options
author | Alan Pearce | 2023-06-09 07:10:43 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-09 07:10:43 +0200 |
commit | 5f2b28d1ca29bd230b7f1085e044d703e69e8fba (patch) | |
tree | 5cd8c9e5bce5d2b22cbdba2e9a73a9a1fea36421 /user | |
parent | 13772fda4c8cb747a00218f4d700fbe288b2f4c8 (diff) | |
download | nixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.tar.lz nixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.tar.zst nixfiles-5f2b28d1ca29bd230b7f1085e044d703e69e8fba.zip |
git: add subcommand to get root of repository
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/git.nix | 1 |
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" |