#514105 git-core: add "checkout-index" to shell completion

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Marcus Better
Date:
2010-05-15 21:21:59 UTC
Severity:
wishlist
#514105#5
Date:
2009-02-04 09:28:49 UTC
From:
To:
The checkout-index command is frequently useful but is missing from
shell completion.

#514105#10
Date:
2009-11-08 04:31:30 UTC
From:
To:
Hi Marcus,

Marcus Better wrote:

Hmm, checkout-index is intended more as a building block in scripts.
If you end up needing to rely on checkout-index frequently, that means
the user-level commands like 'git checkout' probably need some
improvement.  With the checkout-index command, as the manual says,
"Intuitiveness is not the goal here.  Repeatability is", so other
commands to do the same things are very useful. :)

I assume you use checkout-index for the --prefix=<dest>/ option?  In
that case, why use that instead of the following?

	git archive HEAD | (cd <dest> && tar xf -)

I am genuinely curious; I have needed that functionality before and
been too intimidated to use 'git checkout-index' for fear I might
misunderstand the semantics.

Looking forward to your thoughts,
Jonathan

#514105#15
Date:
2009-11-08 14:45:16 UTC
From:
To:
Hi,

Jonathan Nieder wrote:

Yes, I had somehow missed the existence of "checkout" with path
arguments and was using checkout-index to accomplish the same thing. I
don't think I need checkout-index anymore. This bug could be closed or
wontfixed.

Cheers,

Marcus

#514105#20
Date:
2009-11-08 22:15:52 UTC
From:
To:
tags 514105 + wontfix
thanks

Marcus Better wrote:

Thanks for the clarification.  Maybe the bug report will help
point others in the same direction.

Thanks,
Jonathan