Re: [PATCH] Add NEED_WORK_TREE for more commands
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Oct 27, 2007, 10:18 UTC
- Message-ID
- <20071027101839.GA26043@laptop>
- In-Reply-To
- <20071027090822.GA6789@glandium.org>
On Sat, Oct 27, 2007 at 11:08:22AM +0200, Mike Hommey wrote:
Show 16 quoted lines
> On Sat, Oct 27, 2007 at 03:19:10PM +0700, Nguy???n Th??i Ng???c Duy wrote:
> >
> > Signed-off-by: Nguy???n Th??i Ng???c Duy <pclouds@gmail.com>
> > ---
> > git.c | 12 ++++++------
> > 1 files changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/git.c b/git.c
> > index 23a430c..9db40b3 100644
> > --- a/git.c
> > +++ b/git.c
> > + { "ls-files", cmd_ls_files, RUN_SETUP | NEED_WORK_TREE },
> > + { "update-index", cmd_update_index, RUN_SETUP | NEED_WORK_TREE },
>
> At least these two work very fine without a working tree (and I *do*
> need them to work without a working tree).How can you do that while both need index and a working directory to operate?
> Mike
-- Duy