Skip to content

Commit 80d7a76

Browse files
committed
sparse-index: point users to new 'clean' action
In my experience, the most-common reason that the sparse index must expand to a full one is because there is some leftover file in a tracked directory that is now outside of the sparse-checkout. The new 'git sparse-checkout clean' command will find and delete these directories, so point users to it when they hit the sparse index expansion advice. Signed-off-by: Derrick Stolee <[email protected]>
1 parent 49418e8 commit 80d7a76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sparse-index.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ int give_advice_on_expansion = 1;
3232
"Your working directory likely has contents that are outside of\n" \
3333
"your sparse-checkout patterns. Use 'git sparse-checkout list' to\n" \
3434
"see your sparse-checkout definition and compare it to your working\n" \
35-
"directory contents. Running 'git clean' may assist in this cleanup."
35+
"directory contents. Running 'git sparse-checkout clean' may assist\n" \
36+
"in this cleanup."
3637

3738
struct modify_index_context {
3839
struct index_state *write;

0 commit comments

Comments
 (0)