Thread (101 messages) flat view 101 messages, 9 authors, 2021-11-02

Re: [PATCH 05/13] add: fail when adding an untracked sparse file

From: Matheus Tavares Bernardino <hidden>
Date: 2021-08-27 22:50:45

On Fri, Aug 27, 2021 at 6:06 PM Matheus Tavares Bernardino
[off-list ref] wrote:
While I was playing with this patch, I did the following:

echo a >a
echo b >b
git add .
git commit -m files
git sparse-checkout set a
echo c >c
git add c

And the last `git add` was successful in adding the untracked `c` file
which is outside the sparse checkout. I'm not sure if I'm doing
something wrong, but it seems that `path_in_sparse_checkout()` returns
UNDECIDED for `c`. Is it because there was no pattern in the list
explicitly excluding it? And if so, should we consider UNDECIDED as
NOT_MATCHED for `path_in_sparse_checkout()`?
Please disconsider this, It was my fault indeed. I had applied the
patches onto the wrong base. Now I fetched them again but from the GGG
tag, and my manual test worked as expected.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help