diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-26 01:20:50 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-01 22:29:16 -0700 |
commit | 6bd20358a9b831b3b545284188871bc844245c25 (patch) | |
tree | 421b2749edc4442cda4f455e8c157a229f287ad9 /Documentation/git-write-tree.txt | |
parent | f4c6f2d328e2f30ad63fdfca26a5e4a11cef35bf (diff) | |
download | git-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 'Documentation/git-write-tree.txt')
-rw-r--r-- | Documentation/git-write-tree.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Documentation/git-write-tree.txt b/Documentation/git-write-tree.txt index 77e12cb94..c85fa89c3 100644 --- a/Documentation/git-write-tree.txt +++ b/Documentation/git-write-tree.txt @@ -8,7 +8,7 @@ git-write-tree - Creates a tree object from the current index SYNOPSIS -------- -'git-write-tree' [--missing-ok] +'git-write-tree' [--missing-ok] [--prefix=<prefix>/] DESCRIPTION ----------- @@ -30,6 +30,12 @@ OPTIONS directory exist in the object database. This option disables this check. +--prefix=<prefix>/:: + Writes a tree object that represents a subdirectory + `<prefix>`. This can be used to write the tree object + for a subproject that is in the named subdirectory. + + Author ------ Written by Linus Torvalds <torvalds@osdl.org> |