diff options
author | Malfurious <m@lfurio.us> | 2022-02-15 00:04:57 -0500 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-02-15 00:04:57 -0500 |
commit | fa72bd812a7dd75ef832105a775510c27a6bb9f5 (patch) | |
tree | 352bfe74f487c8554ae1825c713cf7197223a603 | |
parent | fc6a6d052f841fa752da7cccf62a30b9f51e3197 (diff) | |
download | rice-fa72bd812a7dd75ef832105a775510c27a6bb9f5.tar.gz rice-fa72bd812a7dd75ef832105a775510c27a6bb9f5.zip |
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)
-rw-r--r-- | .config/fish/functions/rice.fish | 2 |
1 files changed, 1 insertions, 1 deletions
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 |