Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add --share-objects option, with this option will share ~/.project-ob…
…jects for current user
- Loading branch information
1 parent
da40341
commit 0c16efd
Showing
2 changed files
with
15 additions
and
0 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
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 |
---|---|---|
|
@@ -130,6 +130,9 @@ def _Options(self, p): | |
g.add_option('--no-tags', | ||
dest='no_tags', action='store_true', | ||
help="don't fetch tags in the manifest") | ||
g.add_option('--share-objects', | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zhangchunlin
Author
Owner
|
||
dest='share_objects', action='store_true', | ||
help='share project-objects in the ~/.project-objects for current user') | ||
|
||
# Tool | ||
g = p.add_option_group('repo Version options') | ||
|
1 comment
on commit 0c16efd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好使吗这个?
我的想法是 手动 建个 link 到 .repo/.project-objects 下, 每套代码的下面的.repo/.project-objects 都软连接到 ~/.project-objects , 然后在repo init 最后repo sync. 你这个是 直接在代码里面 做了是吧.
之前都是用的 --reference的.
maybe we can make this option to accept a user-provided path, and enable it when it's a directory so that the user can specify different locations instead of "~/.project-objects".