Add comment for the code

I think it's better that we have description in the file.
FIX: check if un-pushed commits

- switch the check for un-pushed commits from `diff-index` to more simple check
- still ignores sub-modules

Closes #234

Clarification: 
As pointed by @cristiandouce in #234 - my flow was different (and pretty stupid to be honest on some particular project of mine) so some other work flow scenarios was failing to pass. 

I still feel such check is needed, because it is still populates Changelog|History files with empty lines if no un-pushed commits exist, so @hemanth merge this one or revert the [619232e](https://github.com/visionmedia/git-extras/commit/619232ef868a7ca275288d1f1ab787d087d758b0)
Merge pull request #235 from sanusart/patch-1

FIX (git-changelog): check if un-pushed commits.
Merge pull request #189 from rhacker/patch-1

Add comment for the code.