Skip to content

completions/git: Handle "1 .T" & "1 AT" files #8311

@z3ntu

Description

@z3ntu

fish 3.3.1 (same with git completions from fish master)

To reproduce:

mkdir /tmp/test
cd /tmp/test
git init
touch test
git add test
git commit -m "foo"
rm test
ln -s foobar test
git add <TAB> *NO COMPLETION*
$ git -c status.relativePaths -c core.quotePath= status --porcelain=2 -uno
1 .T N... 100644 100644 120000 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 test

and the other case:

mkdir /tmp/test
cd /tmp/test
git init
touch test
git add test
rm test
ln -s foobar test
git add <TAB> *NO COMPLETION*
$ git -c status.relativePaths -c core.quotePath= status --porcelain=2 -uno
1 AT N... 000000 100644 120000 0000000000000000000000000000000000000000 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 test

Thanks in advance, I'm always surprised which states you can get git into when heavily using it ;)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions