Re: rc4 - make quick-install-doc is broken

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <rene.scharfe@...>
Cc: Mark Levedahl <mlevedahl@...>, Junio C Hamano <junkio@...>, Git Mailing List <git@...>
Date: Saturday, August 4, 2007 - 6:37 pm

Hi,

your test script is slightly wrong...

First you "git init", with GIT_DIR in $(pwd)/.git, i.e. the default.  But 
then, you need not do this, test scripts are called when git init was 
already called.

Then you make an untracked directory called untracked/.  Tradition 
dictates that when we're in that directory, we get the prefix 
"untracked/", because we might add a file, or reference a file in another 
branch, where that directory is _not_ untracked.

So it is expected that checkout-index and ls-files behave differently 
in a subdirectory (even if that is currently untracked).

It seems a bit counterintuitive that read-tree succeeds, but really, 
read-tree is only a commit -> index operation, which should not care about 
the current prefix.  So it is fine.

Checkout-index, instead, is an index -> working tree operation, and for 
most of these, we care about the current prefix (so that you can say git 
checkout-index file1, where file1 is in the current directory, which is 
_not_ the working tree root).

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:
rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 11:07 am)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 11:38 am)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:00 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 5:33 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 6:37 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 6:25 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 4:45 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 4:21 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:04 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:14 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:21 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 1:56 pm)
[PATCH] Fix quick-install-doc, Johannes Schindelin, (Sat Aug 4, 5:32 pm)
Re: [PATCH] Fix quick-install-doc, , (Sat Aug 4, 6:09 pm)
[PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 3:07 am)
[PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 6:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 6:50 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 7:07 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 7:38 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 9:28 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 9:55 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Junio C Hamano, (Mon Aug 6, 11:53 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Tue Aug 7, 10:08 am)
Re: [PATCH] (Really) Fix install-doc-quick target, Johannes Schindelin, (Mon Aug 6, 7:43 pm)
Re: [PATCH] (Really) Fix install-doc-quick target, Mark Levedahl, (Mon Aug 6, 7:49 pm)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 10:44 am)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 9:12 am)
Re: [PATCH] Fix install-doc-quick target, Junio C Hamano, (Sun Aug 5, 1:54 pm)
Re: [PATCH] Fix install-doc-quick target, Johannes Schindelin, (Sun Aug 5, 2:10 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:08 pm)
Re: rc4 - make quick-install-doc is broken, Johannes Schindelin, (Sat Aug 4, 12:16 pm)
Re: rc4 - make quick-install-doc is broken, Mark Levedahl, (Sat Aug 4, 12:27 pm)