Skip to content

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

Closed

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 ;)

Activity

  1. faho commented on Sep 23, 2021

    @faho
    Member

    Lovely, this isn't documented in git-status. Apparently the "T" stands for "Typechange". Let's just treat it as "modified".

  2. added this to the fish 3.4.0 milestone on Sep 23, 2021
  3. z3ntu commented on Sep 23, 2021

    @z3ntu
    ContributorAuthor

    Thanks as always for the quick fixes! :)

  4. added a commit that references this issue on Dec 12, 2021
  5. locked as resolved and limited conversation to collaborators on Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions