从 .pack 文件中提取源代码
我按照 http://source.android.com/source/downloading.html 获取Android源代码。现在我已经下载了 2 GB 的东西,大部分空间都被 .pack 文件占用了。现在我如何访问代码?
我尝试
git unpack-objects < pack-78609e1ab8b627ff3b749e8d4c78e86e096de3d8.pack
输出是:
解压对象:100% (14014/14014),完成。
这是访问源代码的正确方法吗?它解压到哪里?输出目录在哪里?
I followed the directions on http://source.android.com/source/downloading.html to get the Android source code. Now I have downloaded 2 GB of stuff, most of the space is taken by .pack files. Now how do I access the code?
I tried
git unpack-objects < pack-78609e1ab8b627ff3b749e8d4c78e86e096de3d8.pack
the output is:
Unpacking objects: 100% (14014/14014), done.
Is this the correct way to access the source code and where does it unpack to? Where's the output dir?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Git 内部使用此处解释的对象 http://book.git-scm.com/1_the_git_object_model.html 。这些对象可以被压缩在一个包中。无论如何,我不希望你与物品和/或包有任何关系。那么,您能否更详细地说明您执行的步骤以及最终得到的文件? (注:我不熟悉Android repo-tool,但我熟悉git)
Git internally uses objects that are explained here http://book.git-scm.com/1_the_git_object_model.html. These objects may be compressed together in a pack. Anyhow, I do not expect you have anything to do with objects and/or packs. So, could you give a bit more detail on the steps you did and the files you ended up with? (Note: I'm not familiar with the Android repo-tool, but I am with git)
解压后的文件放在本地.git目录中。使用:
将它们放在本地目录中。
the unpacked files are put in the local .git directory. Use:
to put them in the local directory.