From: W. Trevor King Date: Thu, 18 Aug 2016 17:26:38 +0000 (-0700) Subject: Makefile: Add a 'commit' helper rule X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ebdb1e78836407cd8b8fa115f7ac405e8ad20cb;p=nmbug-oci.git Makefile: Add a 'commit' helper rule So I don't have to type out the master commit we're building by hand. For this to work, origin/master has to have the same tag state as your local notmuch tags. --- diff --git a/Makefile b/Makefile index b9061e0..3cd1680 100644 --- a/Makefile +++ b/Makefile @@ -2,3 +2,6 @@ index.html: notmuch-report --config notmuch-report.json >"$@" + +commit: index.html + git commit -vm "$$(git log -1 --date=short --format='index.html: Rebuild status%n%nPulling in %h (%s, %ad).' origin/master)" --edit "$<"