You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since #722 (specifically f7811cc), Neogit no longer respects showUntrackedFiles in .git/config. Previously, untracked files were not shown if showUntrackedFiles = no, but now they are always shown, irrespective of what this is set to.
Context:
I use git to manage my dotfiles, with the bare repository in the ~/.dotfiles folder, and the worktree at ~. In order to be able to use git from the command-line, I have a shell alias that wraps the git command to add the --git-dir argument.
I also have Neovim set up to export the GIT_DIR environment variable when I am editing my config files, which allows plugins like diffview, gitsigns and Neogit to work correctly. For Neogit specifically, this works great - I am able to stage, commit, push, etc without issue.
However, because the worktree is at ~, I need to be able to ignore untracked files, since every non-configuration file in my home directory is, and should be, untracked. For the git CLI, setting showUntrackedFiles = no does the trick, and before f7811cc, this also worked in Neogit.
Additionally, untracked files are now listed in Neogit individually instead of as directories, which means that now tens of thousands of files are loaded and displayed as untracked, making the status buffer extraordinarily slow - both to load and to navigate.
I have tried to disable the "Untracked files" section using the sections = { untracked = { hidden = false } } config option, but this just hides the section from being displayed - the data is still being loaded. The status page still takes forever to load, where it was close to instant before.
I think either showUntrackedFiles should be respected, or hiding the section should actually stop the data from being loaded. I would prefer showUntrackedFiles, since it would make my neovim config simpler, but either will work. Perhaps even an analogous config option to showUntrackedFiles, where you can specify whether to show nothing (git's no), files and root directories (git's normal - git's default) or all files in all directories (git's all - Neogit's new default).
Description
Since #722 (specifically f7811cc), Neogit no longer respects
showUntrackedFiles
in.git/config
. Previously, untracked files were not shown ifshowUntrackedFiles = no
, but now they are always shown, irrespective of what this is set to.Context:
I use git to manage my dotfiles, with the bare repository in the
~/.dotfiles
folder, and the worktree at~
. In order to be able to use git from the command-line, I have a shell alias that wraps the git command to add the--git-dir
argument.I also have Neovim set up to export the
GIT_DIR
environment variable when I am editing my config files, which allows plugins like diffview, gitsigns and Neogit to work correctly. For Neogit specifically, this works great - I am able to stage, commit, push, etc without issue.However, because the worktree is at
~
, I need to be able to ignore untracked files, since every non-configuration file in my home directory is, and should be, untracked. For the git CLI, settingshowUntrackedFiles = no
does the trick, and before f7811cc, this also worked in Neogit.Additionally, untracked files are now listed in Neogit individually instead of as directories, which means that now tens of thousands of files are loaded and displayed as untracked, making the status buffer extraordinarily slow - both to load and to navigate.
I have tried to disable the "Untracked files" section using the
sections = { untracked = { hidden = false } }
config option, but this just hides the section from being displayed - the data is still being loaded. The status page still takes forever to load, where it was close to instant before.I think either
showUntrackedFiles
should be respected, or hiding the section should actually stop the data from being loaded. I would prefershowUntrackedFiles
, since it would make my neovim config simpler, but either will work. Perhaps even an analogous config option toshowUntrackedFiles
, where you can specify whether to show nothing (git'sno
), files and root directories (git'snormal
- git's default) or all files in all directories (git'sall
- Neogit's new default).Neovim version
NVIM v0.10.0-dev-882+gd7ae9ae3e5
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Operating system and version
Arch Linux
Steps to reproduce
status.showUntrackedFiles = no
in a git repository (git config status.showUntrackedFiles no
)Expected behavior
Untracked files should not be listed under "Untracked files".
Actual behavior
Untracked files are listed under "Untracked files".
Minimal config
-- N/A, no special config necessary
The text was updated successfully, but these errors were encountered: