From fa72bd812a7dd75ef832105a775510c27a6bb9f5 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 15 Feb 2022 00:04:57 -0500 Subject: Change install location of rice Instead of .gitdir, use the usual name of .git for the installed rice repository. Such repository is intended to have its worktree location configured properly. So far, the repository directory has used a non-standard name to avoid detection, so that the user's home directory isn't normally treated as a git repository. However, this is not completely necessary when we also nest the gitdir 1 extra directory deep (inside $HOME/rice). Reverting the name to .git, allows normal git commands to work properly while inside this one directory, but the home directory as a whole is still a sleeper repository. (And because the core.worktree variable is configured properly, git will realize that $HOME/rice is NOT the root of the worktree) --- .config/fish/functions/rice.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/functions/rice.fish b/.config/fish/functions/rice.fish index d0b8bae..8c08921 100644 --- a/.config/fish/functions/rice.fish +++ b/.config/fish/functions/rice.fish @@ -1,3 +1,3 @@ function rice - git --git-dir=$HOME/rice/.gitdir --work-tree=$HOME $argv; + git --git-dir=$HOME/rice/.git $argv; end -- cgit v1.2.3