Skip to content

Commits & files panels sometimes don't show uncommited changes #1783

@Vybo

Description

@Vybo

Version info

  • OS: macOS 13.4.1 (22F82)
  • Build: 2083

Description

I wanted to switch a branch, but I get an error with a files list telling me that switching would cause: "error: Your local changes to the following files would be overwritten by checkout: [file list]".

The files were pngs generated by snapshot tests that are tracked byt Git LFS, however the changes are usually visible in Sublime Merge.

Steps to reproduce

Steps to reproduce the behavior:

  1. Have repo that uses git lfs open
  2. Change a file that is managed by git lfs
  3. Try to switch branch while no file changes are visible in Sublime Merge

Expected behavior

I'd expect to see the list of changes.

Debug Information
=== App Version Information ===
Build: 2083

=== Git Version Information ===
Using Git: git (system)
git version 2.39.2 (Apple Git-143)
PATH: /usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/done/.cargo/bin (from shell)
environment variables loaded using: /bin/zsh -l

=== Browse Page Information ===
HEAD: 626a5c0b5bd2a68e2fd61ce484b5e3c56c83d2fc
Is in merge: 0
Is in cherry_pick: 0
Is in rebase: 0
Is in revert: 0

=== Git Status Information ===
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]
M [redacted, files corresponding with those shown in error]

=== Our Status Information ===

=== Git Config Information ===
branch.devel.merge=refs/heads/devel
branch.devel.remote=origin
branch.fea..[redacted]
branch.fea..[redacted]
branch.fea..[redacted]
branch.fea..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
branch.tas..[redacted]
core.bare=false
core.filemode=true
core.ignorecase=true
core.logallrefupdates=true
core.precomposeunicode=true
core.repositoryformatversion=0
credential.helper=osxkeychain
diff.tool=meld
difftool.meld.cmd=meld $LOCAL $REMOTE
difftool.prompt=false
init.defaultbranch=main
lfs.repositoryformatversion=0
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
remote.origin.url=git@git[redacted]
user.email=d[redacted]
user.name=d[redacted]

=== Our Config Information ===
Git Config Path Information
Using config path: /etc/gitconfig
Using config path: /Users/d[redacted]
Using config path: /Users/d[redacted]
Using config path: /Users/d[redacted]

Our config output is different to the Git config output
branch.devel.merge=refs/heads/devel
branch.devel.remote=origin
branch.fe[redacted]
branch.fe[redacted]
branch.fe[redacted]
branch.fe[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
branch.ta[redacted]
core.bare=false
core.filemode=true
core.ignorecase=true
core.logallrefupdates=true
core.precomposeunicode=true
core.repositoryformatversion=0
diff.tool=meld
difftool.meld.cmd=meld $LOCAL $REMOTE
difftool.prompt=false
lfs.repositoryformatversion=0
remote.origin.fetch=+refs/heads/:refs/remotes/origin/
remote.origin.url=git@git[redacted]
user.email=d[redacted]
user.name=d[redacted]

=== Git Attributes Information ===
git check_attr --all output

=== Our Modified Files Newline Normalisation and EOL Information ===

=== Our Modified Files Flag Information ===
Ignoring symlinks: 0

Screenshots
SCR-20230725-nmpp
SCR-20230725-nmez

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions