using git diff instead of if/else to convert value to bool