Simplified some code leveraging int operator of QFlags. Directly addressing libgit2 public defines.
Merge branch 'revwalks_fix'