title: Is there a tool to create repo manifest file with SHA based on current work directory?
body: <p>I'm using repo, which is used by Android project, to manage my project.</p>
  
  <p>Is there a tool to create repo manifest file with SHA based on current work directory as the following?</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;manifest&gt;
  &lt;remote fetch="git://address.com/" name="origin" review="review.address.com"/&gt;
  &lt;default remote="origin" revision="ics-something" sync-j="4"/&gt;
  &lt;manifest-server url="http://manifests.address.com:8000"/&gt;
  &lt;!-- sniff --&gt;
  &lt;project name="platform/frameworks/base" path="frameworks/base"
         revision="ecb41a77411358d385e3fde5b4e98a5f3d9cfdd5"/&gt;
  &lt;project name="platform/packages/apps/Bluetooth" path="packages/apps/Bluetooth"
         revision="621bae79f1a250e443eb83d1f473c533bea493dc"/&gt;
  &lt;!-- sniff --&gt;
  &lt;/manifest&gt;
  </code></pre>
  
  <p>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.</p>
  
  <p>Thank you in advance. </p>