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
This change enables running the `diff` builtin command without
expanding the full index in a cone-mode sparse checkout. It adds basic
infrastructure to "light up" sparse index for this command.
Additionally, it includes tests to verify sparse index is working as
expected. These tests ensure that:
1. The index is not expanded for `diff` and `diff --staged` (which both
involve reading from the index).
2. `diff` and `diff --staged` behave the same in full
checkout, sparse checkout, and sparse index repositories in the following
partially-staged scenarios (i.e. the index, HEAD, and working directory
differ at a given path):
1. Path is within sparse-checkout cone.
2. Path is outside sparse-checkout cone.
3. Merge conflict for paths outside sparse-checkout cone.
0 commit comments