CRM-13872 - git-footnote - Improve behavior of "git commit --amend"

(Import code circa 5344afcc from git-footnote project)

----------------------------------------
* CRM-13872: git JIRA hook is not idempotent
  http://issues.civicrm.org/jira/browse/CRM-13872
Merge pull request #39 from totten/4.4-gitfootnote-idemp

CRM-13872 - git-footnote - Improve behavior of "git commit --amend"
Merge pull request #51 from civicrm/4.4

Merge branch 4.4 into master