bash completion: refactor common log, shortlog and gitk options