Re: [PATCH] checkout-index needs a working tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: <git@...>
Date: Saturday, August 4, 2007 - 9:33 pm

Hi,

On Sat, 4 Aug 2007, Junio C Hamano wrote:


I tried that, but we have some places where we ask "if (prefix && 
*prefix)", for example in ls-tree.  It does not _require_ a work tree, but 
it certainly uses it when it is available -- which is fine.

Other users are more tricky, such as ls-files and update-index, which need 
a working tree only in some cases.

I'll probably write a patch on Monday (if nobody else is faster) to 
provide a function "require_work_tree()" in environment.c, which does the 
obvious (with caching).  Then comes the tedious part: identifying all 
those options that need a working tree...

Ciao,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] checkout-index needs a working tree, Johannes Schindelin, (Sat Aug 4, 6:20 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Thu Aug 9, 8:31 pm)
Re: [PATCH] checkout-index needs a working tree, Junio C Hamano, (Thu Aug 9, 8:55 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Thu Aug 9, 9:11 pm)
Re: [PATCH] checkout-index needs a working tree, Junio C Hamano, (Sat Aug 4, 6:50 pm)
Re: [PATCH] checkout-index needs a working tree, Johannes Schindelin, (Sat Aug 4, 9:33 pm)