-
-
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
Lazygit does not show diff of untracked stashed files #3931
Comments
I never used the That said, since it is an option in git, maybe not everybody wants it, so it should be configurable. But then, lazygit usually follows the philosophy that if there's a way to configure something in git, we don't make it configureable in lazygit because that would be redundant. And in this case, there is a way to configure it in git, by doing Let me know if you disagree. I guess you could argue that the default in git is a bad one, and we can make lazygit have a better default. However, you could say the same thing about the Tagging @jesseduffield in case he has any thoughts on all this. |
That's a fair point. However, So yes, I'm basically saying that lazygit should have a better default here, considering that it does not have any other effect on the command yet makes our life easier. |
I too wonder why this flag is not passed by git by default. I've asked the following in the git discord (which I'm glad exists because I am not in the mood to learn how the git mailing list works 😉):
I'm leaning towards just honouring the git config. Pretty hard to go wrong with that approach, even though I think git has no good reason to not include untracked files by default. At any rate, like @azizj1 shows above, if you do enable that global config value to include untracked, we currently show the untracked files in the main panel, but not in the 'diff files' panel (not a great name I for a panel I admit). So that is a bug. |
Describe the bug
Untracked stashed files are not shown in the main view.
To Reproduce
Steps to reproduce the behavior:
git stash --include-untracked
, or use lazygit with shift+S and "Stash all changes including untracked files")Expected behavior
The untracked stashed file diff is shown in the main view in lazygit.
Screenshots
As it is now: the untracked stashed file is not shown in lazygit.
As it should be: the untracked stashed file diff is shown in lazygit. I will open a PR that fixes this as shown in the screenshot.
Version info:
Lazygit:
commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=amd64, git version=2.45.2
Git:
git version 2.45.2
The text was updated successfully, but these errors were encountered: