fish-shell / fish-shell/fish-shell

Git path completion has extra ambiguity

Open
#12,809 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
34.2k
Forks
2.4k
Avg merge
2d 8h
Merged PRs (30d)
13

Description

```fish
git init foo
cd foo/
mkdir bar/
touch bar/a
git add .
```

Then compare the behaviour of `ls ` and `git log -- `. The former completes `bar/` unambiguously, but the latter prompts you to choose from `bar/` and `bar/a`. If you are used to path completions in fish outside of Git, then this behaviour is a bit surprising.

---

fish 4.7.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.