diff options
author | Teddy Wing | 2019-06-09 21:31:38 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-09 21:36:26 +0200 |
commit | 3ff388797bc3abe7b9996877db4f2fcd860f01f0 (patch) | |
tree | 481af6959e3e84f616728771fd9cf6f3290e72be /code-review-difftool | |
parent | 022fa289cce900a4f178e0fcbdef8e609780a764 (diff) | |
download | code-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-difftool')
0 files changed, 0 insertions, 0 deletions