title: Track changes to library with git
body: <p>For a magento2 project I need to make changes to the magento core files since currently even small bugfixes there seem to take (literally) years.</p>
  
  <p>My idea was to add files I need to change to master, then make the changes in a seperate branch ("hacks") and merge them back to master with --no-ff option (obviously I need the changes in master an cannot have them unmerged).</p>
  
  <p>What I don't archieve now is seeing the list of commits of branch "hacks" only since becaue I merged them into master all commits belong to master as well.</p>
  
  <p>I there a way to do this, or should I just do the whole thing differently?</p>