From 78a42f61bd17968ce36e87fb62406d45d1492e01 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 24 Jul 2020 11:53:09 -0700 Subject: [PATCH] add tool to ease making commits --- makefile | 3 +++ tools/extract_latest_change.sh | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 tools/extract_latest_change.sh diff --git a/makefile b/makefile index 161999a4..8c6eea5a 100644 --- a/makefile +++ b/makefile @@ -241,6 +241,9 @@ doc: change: format vim ixwebsocket/IXWebSocketVersion.h docs/CHANGELOG.md +commit: + git commit -am "`sh tools/extract_latest_change.sh`" + .PHONY: test .PHONY: build .PHONY: ws diff --git a/tools/extract_latest_change.sh b/tools/extract_latest_change.sh new file mode 100644 index 00000000..d605d9cc --- /dev/null +++ b/tools/extract_latest_change.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +grep -A 3 '^##' docs/CHANGELOG.md | head -n 3 | tail -n 1