Initial commit lol
This commit is contained in:
parent
a2318e586a
commit
ed3d2e8ef8
18 changed files with 375 additions and 0 deletions
6
programs/fish/functions/git_is_touched.fish
Normal file
6
programs/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