aboutsummaryrefslogtreecommitdiffstats
path: root/code-review-diff
diff options
context:
space:
mode:
authorTeddy Wing2019-06-09 21:31:38 +0200
committerTeddy Wing2019-06-09 21:36:26 +0200
commit3ff388797bc3abe7b9996877db4f2fcd860f01f0 (patch)
tree481af6959e3e84f616728771fd9cf6f3290e72be /code-review-diff
parent022fa289cce900a4f178e0fcbdef8e609780a764 (diff)
downloadcode-review-3ff388797bc3abe7b9996877db4f2fcd860f01f0.tar.bz2
code-review-start: Add `get_merge_base` function
Function to get the merge base for the current branch. If none exists in the database, default to `origin/master` if there's an `origin` remote, or `master` if not. Thanks to Serpiton (https://codereview.stackexchange.com/users/61525/serpiton) on Stack Overflow for describing how to get a default value using the `MAX()` function: https://codereview.stackexchange.com/questions/74192/select-first-value-if-exists-otherwise-select-default-value/74252#74252 Thanks to 'tig' (https://stackoverflow.com/users/96823/tig) on Stack Overflow for the command to check if a given Git remote exists: https://stackoverflow.com/questions/12170459/check-if-git-remote-exists-before-first-push/26843249#26843249
Diffstat (limited to 'code-review-diff')
0 files changed, 0 insertions, 0 deletions