pare(the_repository, &amp;status);
        git_config(git_default_config, &amp;status);

...

        printf(_("Your current branch: %s\n"), status.branch);</pre>
</div>
</div>
<div class="paragraph">
<p>Run it again. Check it out - here&#8217;s the (verbose) name of your current branch!</p>
</div>
<div class="paragraph">
<p>Let&#8217;s commit this as well.</p>
</div>
<div class="listingblock">
<div class="content">
<pre>$ git add builtin/psuh.c
$ git commit -sm "psuh: print the current branch"</pre>
</div>