Re: [Feature Request] git export

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Mon, 10 Aug 2009, Thomas Koch wrote:

> could you please provide a simple solution to save a tree object into an 
> arbitrary location?
>
> I found some hints, that it would be possible by missusing either git 
> checkout-index or git-archive, but I think that it shouldn't require 
> that much GIT FU to do such a simple thing.

You can check out Documentation/install-doc-quick.sh and find that 
something like

	GIT_INDEX_FILE=.git/tmp
	export GIT_INDEX_FILE
	git read-tree $TREE
	git checkout-index -a -f --prefix=/the/path
	unset GIT_INDEX_FILE

should work.

Hth,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]