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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <git@...>
Date: Saturday, August 4, 2007 - 6:50 pm

Hmmph.  I was trying to come up with a better commit log message
for this change.

	Paths given from the command line of checkout-index name
	files relative to the cwd, whose implication is that it
	is relative to where you are in relation with the top of
	the working tree.  For doing that, you need to have the
	work tree to begin with.

Does this mean that any command that uses its prefix parameter
to cmd_xxx() needs NEED_WORK_TREE?

I wonder if it would help us to catch similar breakages if we
change git.c::run_command() so that we do not pass prefix (or
pass a bogus pointer ((const char *)1)) for commands that do not
ask for NEED_WORK_TREE.


-
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)