oh-my-fish/lib/git
Johannes Altmanninger b1b10c333d
Check whether we are inside the worktree (#651)
Some git commands require to be run from inside the worktree (as opposed
    to the git dir, although it's usually in .git). This commit adds
a function git_is_worktree to check this. It is used for the commands
that need the worktree instead of git_is_repo.

An alternative solution might have been to find the git worktree in the
parent of the git directory, but this doesn't work for all cases.
Generally it's impossible to detect the location of the worktree (plus
    it's not unique).

Co-authored-by: Pablo Aguiar <scorphus@gmail.com>
2020-11-30 15:09:43 -08:00
..
git_ahead.fish Use posix stderr redirection (2> instead of ^) 2018-06-09 01:23:32 +03:00
git_branch_name.fish Use posix stderr redirection (2> instead of ^) 2018-06-09 01:23:32 +03:00
git_is_dirty.fish Check whether we are inside the worktree (#651) 2020-11-30 15:09:43 -08:00
git_is_repo.fish Use posix stderr redirection (2> instead of ^) 2018-06-09 01:23:32 +03:00
git_is_staged.fish %%% United States of the Fish → Wahoo + OMF %%% 2015-08-27 00:20:13 +09:00
git_is_stashed.fish %%% United States of the Fish → Wahoo + OMF %%% 2015-08-27 00:20:13 +09:00
git_is_touched.fish Check whether we are inside the worktree (#651) 2020-11-30 15:09:43 -08:00
git_is_worktree.fish Check whether we are inside the worktree (#651) 2020-11-30 15:09:43 -08:00
git_untracked.fish Check whether we are inside the worktree (#651) 2020-11-30 15:09:43 -08:00