Fabian Homborg 05ef157757 functions/fish_git_prompt: Let helper functions return useful status
If you use these to figure out if there _are_ staged files, or dirty
or whatever, you currently need to check the output, which relies on
the configured character.

Instead, we let them also return a useful status.
Notably, this is *not* simply the status of the git call.

__fish_git_prompt_X returns 0 if the repo is X.

This works for untracked, but the "diff" things return 1 if there is a
diff, so we invert the status for them.

See #5748.

[ci skip]
2019-03-19 10:11:37 +01:00
..
2018-10-29 13:56:40 -05:00
2016-11-27 21:27:22 -08:00
2018-05-12 13:48:32 +02:00
2019-02-19 11:02:58 +01:00
2016-11-27 21:27:22 -08:00
2017-07-13 11:53:29 -07:00
2016-11-27 21:27:22 -08:00
2017-10-01 01:11:17 -07:00
2019-01-13 16:14:58 -06:00
2016-11-27 21:27:22 -08:00
2018-11-22 12:43:35 +01:00
2016-11-27 21:27:22 -08:00
2018-12-13 21:57:24 +08:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2016-11-27 21:27:22 -08:00
2019-02-14 10:57:38 +01:00
2016-11-27 21:27:22 -08:00
2018-11-22 12:43:35 +01:00
2018-11-22 12:43:35 +01:00
2019-03-09 13:44:03 -08:00
2017-04-05 15:31:13 -07:00
2016-11-27 21:27:22 -08:00