是否有工具可基于当前工作目录使用SHA创建回购清单文件? [英] Is there a tool to create repo manifest file with SHA based on current work directory?

查看:69
本文介绍了是否有工具可基于当前工作目录使用SHA创建回购清单文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用由Android项目使用的repo来管理我的项目.

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

是否有一种工具可以根据当前工作目录使用SHA创建回购清单文件?

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>

我的意思是在当前清单的基础上创建一个新的清单文件,并且项目修订值为当前工作目录中项目的HEAD SHA.

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.

先谢谢您.

推荐答案

repo manifest命令根据当前工作空间创建具有固定SHA-1的清单文件.

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

repo manifest -r -o my-manifest.xml

这篇关于是否有工具可基于当前工作目录使用SHA创建回购清单文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆