title: Add note to commit when filtering branch with Git
body: <p>Next command is to store commit history and files lists but remove file contents in order to minimalize disk space and network traffic consumption when need to get know history of huge repo without fetching large objects. <em>This allows to save much time.</em> </p>
  
  <pre><code>git filter-branch -f -d `mktemp -d` \
     --tree-filter '
        find . -type f -not -path ./.git\* |
           while read file; do &gt; "$file"; done
     ' \
     --msg-filter '
        cat - &amp;&amp; echo &amp;&amp; echo "commit $GIT_COMMIT"
     ' \
     -- metainfo/$BRANCH
  </code></pre>
  
  <p>I also need to know the source commit hash. It is appended to commit message as you can see in <code>--msg-filter</code> part.  </p>
  
  <h3>I would like to store source commit hash in <a href="https://git-scm.com/docs/git-notes" rel="nofollow noreferrer">git notes</a>.</h3>
  
  <p>Is it possible? How?</p>