From b03849006170f055287808b791e9917b13245ca6 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Fri, 11 Nov 2016 18:52:27 -0800 Subject: [PATCH] Add `done` recipe that cleans up a merged branch (#57) Rebases BRANCH on github master and deletes if merged. --- justfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/justfile b/justfile index a383c62..ed42d9f 100644 --- a/justfile +++ b/justfile @@ -30,6 +30,13 @@ publish: clippy build git push origin --tags @echo 'Remember to merge the v{{version}} branch on GitHub!' +done BRANCH: + git checkout {{BRANCH}} + git pull --rebase github master + git checkout master + git pull --rebase github master + git branch -d {{BRANCH}} + clippy: rustup run nightly cargo clippy