the following includes:</p>
</div>
<div class="listingblock">
<div class="content">
<pre>#include "commit.h"
#include "pretty.h"</pre>
</div>
</div>
<div class="paragraph">
<p>Then, add the following lines within your implementation of <code>cmd_psuh()</code> near
the declarations and the logic, respectively.</p>
</div>
<div class="listingblock">
<div class="content">
<pre>        struct commit *c = NULL;
        struct strbuf commitline = STRBUF_INIT;

...

        c = lookup_commit_reference_by_name("orig