Code

Add the ability to prefix something to the pathname to "checkout-cache.c"
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 17:15:02 +0000 (10:15 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 21 Apr 2005 17:15:02 +0000 (10:15 -0700)
commit65bb49144d26a10837582a99e66041035319ff91
tree46c126e40370987967564a7028d91c840ffc17db
parent94dfb7f2e38fde5014fe50f9e74bde7d2d264184
Add the ability to prefix something to the pathname to "checkout-cache.c"

This basically makes it trivial to use checkout-cache as a "export as
tree" function. Just read the desired tree into the index, and do a

checkout-cache --prefix=export-dir/ -a

and checkout-cache will "export" the cache into the specified directory.

NOTE! The final "/" is important. The exported name is literally just
prefixed with the specified string, so you can also do something like

checkout-cache --prefix=.merged- Makefile

to check out the currently cached copy of "Makefile" into the file
".merged-Makefile".
checkout-cache.c