Refactor codebase to use nix modules
This commit is contained in:
parent
a4735423b4
commit
ffada2703c
114 changed files with 1018 additions and 744 deletions
6
hmModules/apps/shells/fish/functions/git_is_touched.fish
Normal file
6
hmModules/apps/shells/fish/functions/git_is_touched.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
git_is_worktree; and begin
|
||||
# The first checks for staged changes, the second for unstaged ones.
|
||||
# We put them in this order because checking staged changes is *fast*.
|
||||
not command git diff-index --cached --quiet HEAD -- >/dev/null 2>&1
|
||||
or not command git diff --no-ext-diff --quiet --exit-code >/dev/null 2>&1
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue