Is there a tool to create repo manifest file with SHA based on current work directory?

瘦欲@ 提交于 2019-12-09 12:43:21

问题


I'm using repo, which is used by Android project, to manage my project.

Is there a tool to create repo manifest file with SHA based on current work directory as the following?

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote fetch="git://address.com/" name="origin" review="review.address.com"/>
<default remote="origin" revision="ics-something" sync-j="4"/>
<manifest-server url="http://manifests.address.com:8000"/>
<!-- sniff -->
<project name="platform/frameworks/base" path="frameworks/base"
       revision="ecb41a77411358d385e3fde5b4e98a5f3d9cfdd5"/>
<project name="platform/packages/apps/Bluetooth" path="packages/apps/Bluetooth"
       revision="621bae79f1a250e443eb83d1f473c533bea493dc"/>
<!-- sniff -->
</manifest>

I mean to create a new manifest file base the current manifest, and the project revision value is the HEAD SHA of projects in current work directory.

Thank you in advance.


回答1:


The repo manifest command creates manifest files with fixed SHA-1s based on the current workspace.

repo manifest -r -o my-manifest.xml


来源:https://stackoverflow.com/questions/33030289/is-there-a-tool-to-create-repo-manifest-file-with-sha-based-on-current-work-dire

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!