aboutsummaryrefslogtreecommitdiff
path: root/read-tree.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 10:15:02 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 10:15:02 -0700
commit65bb49144d26a10837582a99e66041035319ff91 (patch)
tree46c126e40370987967564a7028d91c840ffc17db /read-tree.c
parent94dfb7f2e38fde5014fe50f9e74bde7d2d264184 (diff)
downloadgit-65bb49144d26a10837582a99e66041035319ff91.tar.gz
git-65bb49144d26a10837582a99e66041035319ff91.tar.xz
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".
Diffstat (limited to 'read-tree.c')
0 files changed, 0 insertions, 0 deletions