git-logs: support commit ranges

Generecize commit handling, allowing user to supply ranges.

NB that if you don't provide a range (eg a single SHA1), '..' will be
appended when running git-log.

Change-Id: Ie7b8be9cef5731fbd2824820395ed8316322b7de