Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 823
gzh Avatar asked Oct 09 '15 05:10

gzh


1 Answers

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

repo manifest -r -o my-manifest.xml
like image 107
Magnus Bäck Avatar answered Oct 20 '22 22:10

Magnus Bäck