git: add subcommand to get root of repository
Alan Pearce alan@alanpearce.eu
Fri, 09 Jun 2023 07:10:43 +0200
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M user/settings/git.nix → user/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"