Skip to content
Discussion options

You must be logged in to vote

but my checkout changes. meaning the open buffers should be refreshed from disk but they aren't being refreshed, and so mini.diff still computes the same old diff.

Yes, this is exactly what happens. The git stash changes the file on disk but the Neovim buffer used to show the file is not yet updated. As 'mini.diff' is designed around "compare buffer text with its reference text" and the Neovim's buffer watcher doesn't notify it about the changes (since there are none), the summary is the same (because the buffer is the same).

Using git add * instead of git stash here works because of how 'mini.diff' watches Git index. It can detect the change via file watcher and adjust reference text o…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@emmanueltouzery
Comment options

@echasnovski
Comment options

@emmanueltouzery
Comment options

@echasnovski
Comment options

Answer selected by emmanueltouzery
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested mini.diff
2 participants