mbox series

[v2,0/4] bitbake-setup: Improve readability

Message ID 20260218-improve-bbsetup-readability-v2-0-351584e5df9c@bootlin.com
Headers show
Series bitbake-setup: Improve readability | expand

Message

Antonin Godard Feb. 18, 2026, 1:15 p.m. UTC
The series is an attempt at improving the readability of some of the
bitbake-setup output on the console, to improve user experience.

Here's a summary of the changes:

- Align outputs of choices in the init command (instead of tabs)
- Print the diffs with color, which makes them much easier to read.

All the coloring can be disabled by passing --color=never.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
Changes in v2:
- Drop the --quiet patch
- Define a run_git_diff() helper function used for printing colored
  diffs. Drop get_diff() in favor of it.
- Link to v1: https://patch.msgid.link/20260213-improve-bbsetup-readability-v1-0-41cec3b06992@bootlin.com

---
Antonin Godard (4):
      bitbake-setup: define a color_enabled() helper function
      bitbake-setup: improve readability of choices
      bitbake-setup: print colored diffs
      bitbake-setup: drop get_diff and replace by run_git_diff

 bin/bitbake-setup | 130 +++++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 94 insertions(+), 36 deletions(-)
---
base-commit: 5427500e4f23580962126d2b27ed627ca237fe4a
change-id: 20260123-improve-bbsetup-readability-ff6a0ee8ee25