]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory-diff: add support for colourising the output
authorRoss Burton <ross.burton@intel.com>
Wed, 17 Jan 2018 17:11:33 +0000 (17:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jan 2018 12:49:22 +0000 (12:49 +0000)
commit4208f1546c92f069e432d1865269ce539db8cea7
treeccda7028b7a6f37104ee4db8f5f6fdb41d437298
parent3905ae20330f204f3c8997e2d5aaf15dcf5a860c
buildhistory-diff: add support for colourising the output

Colour value removes in red and additions in green, making it easier to scan the
output for relevant changes.

This adds a --colour option to specify whether colouring should be on, off, or
detected.  The default is detected, and depends on whether stdout is a TTY (same
behaviour as git).

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/buildhistory_analysis.py
scripts/buildhistory-diff