title: git layout for project with library dependencies?
body: <p>Hello this is the scenario I want help with. </p>
  
  <p>I have two projects on <a href="http://bitbucket.org" rel="nofollow">bitbucket</a> (similar to <a href="http://github.com" rel="nofollow">github</a>). One is a an application the other is a Library. So while I'm working on the application I want to be able to submit patches to the library (I want to keep them separated with different branches). The application is also dependent on this Library. </p>
  
  <p>The layout on disk might look something like this:</p>
  
  <pre><code>$MyProject/Src
  $MyProject/Library
  </code></pre>
  
  <p>I Want to be able to submit patches and branch them independently, can I use git subtree, or should I go with git submodules?</p>
  
  <p>Is there a third alternative that is even better?</p>