Re: [PATCH 5/6] checkout(-index): do not checkout i-t-a entries

2015-12-28 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > diff --git a/builtin/checkout-index.c b/builtin/checkout-index.c > index 9ca2da1..d9fe8f4 100644 > --- a/builtin/checkout-index.c > +++ b/builtin/checkout-index.c > @@ -48,6 +48,7 @@ static int checkout_file(const char *name, const char > *prefix) > int pos

[PATCH 5/6] checkout(-index): do not checkout i-t-a entries

2015-12-26 Thread Nguyễn Thái Ngọc Duy
The cached blob of i-t-a entries are empty blob. By checkout, we delete the content we have. Don't do it. This is done higher up instead of inside checkout_entry() because we would have limited options in there: silently ignore, loudly ignore, die. At higher level we can do better reporting. For e