Fix git->branches... on the root folder.

Now pressing git->branches... on the root folder of a project under git will show all available branches instead of showing an error message: Not a git repository...

REVIEW: 115327
Add stream operators for IncludeItem
Merge remote-tracking branch 'origin/1.6'