>Print the commit object name from the revision in the $REV shell variable:</p>
<div class="listingblock">
<div class="content">
<pre>$ git rev-parse --verify $REV^{commit}</pre>
</div>
</div>
<div class="paragraph">
<p>This will error out if $REV is empty or not a valid revision.</p>
</div>
</li>
<li>
<p>Similar to above:</p>
<div class="listingblock">
<div class="content">
<pre>$ git rev-parse --default master --verify $REV</pre>
</div>
</div>
<div class="paragraph">
<p>but if $REV is empty, the commit ob