-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to filter the files view to only show untracked files #4226
Conversation
@stefanhaller assigning you as a reviewer |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
Code looks great; I tested it, works great too. One thing I find slightly confusing is how the code comments, commit message, and PR description all talk about bare repos. This is confusing because bare repos don't have a working copy, so the concept of untracked files doesn't make sense to them. Unless you use them with the My remaining comments are unrelated to this PR, just noticed them while testing:
|
I made a new PR (#4230) that sits on top of this one that addresses the first two bullet points of my comment above. |
Interesting point. From what I've seen, anybody interacting with a bare repo with lazygit is typically using a worktree somewhere. E.g. with dotfiles (#1201) or when adding individual worktrees (#3100). Bare repos without worktrees are typically just remotes, and most remotes are managed by github, gitlab, etc. So I think talking about untracked files with bare repos is fine.
Hmm, indeed. It would be good to test the actual performance gain and if it's marginal we should definitely stop caching. It would simplify the code too. I've added an issue: #4240 |
This handles the situation where the user's own config says to not show untracked files, as is often the case with bare repos managing a user's dotfiles.
b5e1269
to
7e85cdd
Compare
This handles the situation where the user's own config says to not show untracked files, as is often the case with bare repos managing a user's dotfiles.
PR Description
Please check if the PR fulfills these requirements
go generate ./...
)