RFR: git-webrev: use HEAD when branch has no commits

Robin Westberg rwestberg at openjdk.java.net
Wed Mar 11 13:54:56 UTC 2020

On Wed, 11 Mar 2020 13:50:38 GMT, Erik Helin <ehelin at openjdk.org> wrote:

> Hi all,
> please review this small patch that fixes an issue with the default value for
> `--rev` for `git-webrev`. If the current branch has no commits then
> `origin..HEAD` will be an empty range, so in that case we should just fall back
> to `HEAD`.
> Testing:
> - Manual testing of `git-webrev` on Linux x64
> Thanks,
> Erik

Looks good!


Marked as reviewed by rwestberg (Reviewer).

PR: https://git.openjdk.java.net/skara/pull/508

More information about the skara-dev mailing list