git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v4 1/3] t7063: use --force-untracked-cache to speed up a bit

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Aug 19, 2015, 13:01 UTC
Message-ID
<1439989286-24355-2-git-send-email-pclouds@gmail.com>
In-Reply-To
<1439989286-24355-1-git-send-email-pclouds@gmail.com>

When in the middle of t7063, we are sure untracked cache is supported, so we can use --force-untracked-cache to skip the support detection phase and save a few seconds. It's also good that --force-untracked-cache is exercised in the test suite.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
---
 t/t7063-status-untracked-cache.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t7063-status-untracked-cache.sh b/t/t7063-status-untracked-cache.sh
index ff23f4e..744e922 100755
--- a/t/t7063-status-untracked-cache.sh
+++ b/t/t7063-status-untracked-cache.sh
@@ -402,7 +402,7 @@ test_expect_success 'set up sparse checkout' '
 	echo "done/[a-z]*" >.git/info/sparse-checkout &&
 	test_config core.sparsecheckout true &&
 	git checkout master &&
-	git update-index --untracked-cache &&
+	git update-index --force-untracked-cache &&
 	git status --porcelain >/dev/null && # prime the cache
 	test_path_is_missing done/.gitignore &&
 	test_path_is_file done/one
-- 
2.3.0.rc1.137.g477eb31
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 5 of 10 in “untracked-cache: fix subdirectory handling”
  1. untracked-cache: fix subdirectory handlingDavid Turner, Aug 16, 2015
  2. Duy NguyenAug 16, 2015
  3. Duy NguyenAug 19, 2015
  4. 0/3 dt/untracked-subdirNguyễn Thái Ngọc Duy, Aug 19, 2015
  5. 1/3 t7063: use --force-untracked-cache to speed up a bitNguyễn Thái Ngọc Duy, Aug 19, 2015
  6. 2/3 untracked-cache: fix subdirectory handlingNguyễn Thái Ngọc Duy, Aug 19, 2015
  7. 3/3 untracked cache: fix entry invalidationNguyễn Thái Ngọc Duy, Aug 19, 2015
  8. David TurnerAug 25, 2015
  9. Junio C HamanoAug 25, 2015
  10. Junio C HamanoAug 19, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.