-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Junio C Hamano
committed
May 2, 2006
1 parent
f4c6f2d
commit 6bd2035
Showing
5 changed files
with
67 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters