HomeFreeBSD

Add color output to zfs diff.

Description

Add color output to zfs diff.

This adds support to color zfs diff (in the style of git diff)
conditional on the ZFS_COLOR environment variable.

Signed-off-by: Ethan Coe-Renner <coerenner1@llnl.gov>

Details

Provenance
Ethan Coe-Renner <coerenner1@llnl.gov>Authored on Dec 12 2022, 11:30 PM
Tony Hutter <hutter2@llnl.gov>Committed on Jan 19 2023, 8:50 PM
Parents
rG0e72f5fb83f8: libzfs: diff: simplify superfluous stdio
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG9ef565a185e6: Add color output to zfs diff. (authored by Ethan Coe-Renner <coerenner1@llnl.gov>).Jan 19 2023, 8:50 PM