aboutsummaryrefslogtreecommitdiff
path: root/cache-tree.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-26 01:20:50 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-01 22:29:16 -0700
commit6bd20358a9b831b3b545284188871bc844245c25 (patch)
tree421b2749edc4442cda4f455e8c157a229f287ad9 /cache-tree.h
parentf4c6f2d328e2f30ad63fdfca26a5e4a11cef35bf (diff)
downloadgit-6bd20358a9b831b3b545284188871bc844245c25.tar.gz
git-6bd20358a9b831b3b545284188871bc844245c25.tar.xz
write-tree: --prefix=<path>
The "bind" commit can express an aggregation of multiple projects into a single commit. In such an organization, there would be one project, root of whose tree object is at the same level of the root of the aggregated projects, and other projects have their toplevel in separate subdirectories. Let's call that root level project the "primary project", and call other ones just "subprojects". You would first read-tree the primary project, and then graft the subprojects under their appropriate location using read-tree --prefix=<subdir>/ repeatedly. To write out a tree object from such an index for a subproject, write-tree --prefix=<subdir>/ is used. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache-tree.h')
-rw-r--r--cache-tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache-tree.h b/cache-tree.h
index 72c64801f..119407e3a 100644
--- a/cache-tree.h
+++ b/cache-tree.h
@@ -28,4 +28,6 @@ struct cache_tree *cache_tree_read(const char *buffer, unsigned long size);
int cache_tree_fully_valid(struct cache_tree *);
int cache_tree_update(struct cache_tree *, struct cache_entry **, int, int, int);
+struct cache_tree *cache_tree_find(struct cache_tree *, const char *);
+
#endif