From ddd3e3124276133d0c7e902287ab4113f660f6d7 Mon Sep 17 00:00:00 2001 From: Jonathan Tan Date: Thu, 7 Dec 2017 16:14:24 -0800 Subject: decorate: clean up and document API Improve the names of the identifiers in decorate.h, document them, and add an example of how to use these functions. The example is compiled and run as part of the test suite. Signed-off-by: Jonathan Tan Signed-off-by: Junio C Hamano --- t/t9004-example.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 t/t9004-example.sh (limited to 't/t9004-example.sh') diff --git a/t/t9004-example.sh b/t/t9004-example.sh new file mode 100755 index 0000000000..b28a028f55 --- /dev/null +++ b/t/t9004-example.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +test_description='check that example code compiles and runs' +. ./test-lib.sh + +test_expect_success 'decorate' ' + test-example-decorate +' + +test_done -- cgit v1.2.1