Re: [PATCH 20/24] update-index: test the system before enabling untracked cache

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH 20/24] update-index: test the system before enabling untracked cache

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:03:38

Nguyễn Thái Ngọc Duy  [off-list ref] writes:
Helped-by: Eric Sunshine [off-list ref]
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
---
It appears that this hijacks a fixed name dir-mtime-test at the root
level of every project managed by Git.  Is that intended?

Shouldn't --use-untracked-cache option require the working tree
(i.e. die in a bare repository)?

Re: [PATCH 20/24] update-index: test the system before enabling untracked cache

From: Duy Nguyen <hidden>
Date: 2016-06-15 23:03:38

On Wed, Jan 21, 2015 at 3:32 PM, Junio C Hamano [off-list ref] wrote:
Nguyễn Thái Ngọc Duy  [off-list ref] writes:
quoted
Helped-by: Eric Sunshine [off-list ref]
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
---
It appears that this hijacks a fixed name dir-mtime-test at the root
level of every project managed by Git.  Is that intended?
I did think about filename clash, but I chose a fixed name anyway for
simplicity, otherwise we would need to reconstruct paths
"dir-mtime-test/..." in many places.
Shouldn't --use-untracked-cache option require the working tree
(i.e. die in a bare repository)?
setup_work_tree() takes care of that
~/w/git $ git init --bare foo
Khởi tạo trống rỗng kho Git trong /home/pclouds/w/git/foo/
~/w/git $ cd foo/
~/w/git/foo $ ../git update-index --untracked-cache
fatal: This operation must be run in a work tree
-- 
Duy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help