title: git: hook for fast-forward switch on branch change?
body: <p>Is there a hook script available somewhere that would do a fast-forward merge on branch switch? I have a repository where there are multiple branches, and I have to work on several on them. After a git pull which obviously merges the currently checked out branch it often happens to me that I see the following message when switching branches:</p>
  
  <pre><code>&gt; git checkout master 
  Switched to branch 'master'
  Your branch is behind 'origin/master' by 10 commits, and can be fast-forwarded.
  &gt; 
  </code></pre>
  
  <p>I would like git to do that fast-forward merge for me automatically on branch change. I don't want it to unconditionally merge but only when a fast-forward is possible.</p>
  
  <p>Thanks in advance for suggestions,<br>
  Rhonda</p>