git update-index --skip-worktreeで無視したファイルを探す

git で管理されてて、更新したけどコミットする気はないファイルがあると色々面倒ですよね。
そんなときは git update-index --skip-worktree で更新を無視できるわけですが、これを適用したファイルがわからなくなった場合は、以下のコマンドで確認できます。

git ls-files -t | grep ^S

git ls-files -t *1

       This option identifies the file status with the following tags (followed by a space) at the start of each line:

       H
           cached

       S
           skip-worktree

       M
           unmerged

       R
           removed/deleted

       C
           modified/changed

       K
           to be killed

       ?
           other

Ubuntu Manpage: git-ls-files - Show information about files in the index and the working tree

という効果があります。

しかし、気になる記述もあります。

This feature is semi-deprecated. For scripting purpose, git-status(1) --porcelain and git-diff-files(1) --name-status are almost always superior alternatives, and users should look at git-status(1) --short or git-diff(1) --name-status for more user-friendly alternatives.

alternativeとして挙げられているコマンドを試しても S は出てこないので、廃止されると困るのですが……

*1:-v または -f でも可