mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-30 07:01:22 -03:00
Within a linked worktree, `$GIT_DIR` and `$GIT_COMMON_DIR` have different values (see [git-worktree docs](https://git-scm.com/docs/git-worktree#_details)). The two serve different purposes, in case of stashes `$GIT_COMMON_DIR` should be used, this way stash detection in the git prompt works also when inside a `git worktree`. Closes #11591