oh-my-fish/lib/git
Fabian Homborg 131c8d74e5 lib/git/git_is_touched: Speed up (#706)
* lib/git/git_is_touched: Speed up

This used to use `git status --porcelain`, which by necessity needs to
check the entire repo for all kinds of changes, just to figure out if
there are any.

Instead, we now use git commands that can exit early.

In large repos, this can be faster by a factor of 15 or so.

Fixes #624.

* Fix return status

`git diff` also returns 1 if there *is* a diff.
2019-06-07 12:14:11 -07: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 %%% United States of the Fish → Wahoo + OMF %%% 2015-08-27 00:20:13 +09: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 lib/git/git_is_touched: Speed up (#706) 2019-06-07 12:14:11 -07:00
git_untracked.fish %%% United States of the Fish → Wahoo + OMF %%% 2015-08-27 00:20:13 +09:00