iv class="paragraph">
<p>Note: index may be looked at for .gitignore files that are CE_SKIP_WORKTREE
marked. If you to exclude files, make sure you have loaded index first.</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Prepare <code>struct dir_struct dir</code> and clear it with <code>memset(&amp;dir, 0,
sizeof(dir))</code>.</p>
</li>
<li>
<p>To add single exclude pattern, call <code>add_exclude_list()</code> and then
<code>add_exclude()</code>.</p>
</li>
<li>
<p>To add patterns from a file (e.