Re: Feature request: Allow extracting revisions into directories

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

 



That is actually a pretty interesting approach. I can use a different
index file for different deployments. How does this cooperate with bare
repositories? Aren't they supposed to have no index file at all?

Am Samstag, den 09.02.2013, 20:06 -0800 schrieb Jonathan Nieder:
> My advice is to keep a separate index file for your exported files.
> Like this:
> 
> 	GIT_DIR=$(readlink -f $(git rev-parse --git-dir))
> 	GIT_INDEX_FILE=$GIT_DIR/index-for-deployment
> 	export GIT_DIR GIT_INDEX_FILE
> 
> 	cd $dest
> 	git read-tree -m -u <tree>
> 
> Hope that helps,
> Jonathan


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