tools/format-cpp: add `-t` to `xargs`
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 26 Oct 2023 12:45:45 +0000 (08:45 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 30 Oct 2023 18:15:46 +0000 (14:15 -0400)
`tools/format-cpp` can be a bit long, so show the progress by making
xargs print the executed command.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ifb5e40017a2bb429ce7e900a2076532bc038a792
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11143
Reviewed-by: Michael Jeanson <mjeanson@efficios.com>
tools/format-cpp

index a2c6a3aefee8c3ccbce0cb7d62f390136211a538..29a0bf7efa63bdc6ae11b73c02c7099189863543 100755 (executable)
@@ -35,7 +35,7 @@ format_cpp() {
                ! -wholename '*/cpp-common/optional.hpp' \
                ! -wholename '*/cpp-common/string_view.hpp' \
                ! -wholename '*/cpp-common/nlohmann/json.hpp' \
-               -print0 | xargs -P"$(nproc)" -n1 -0 "${formatter[@]}"
+               -print0 | xargs -P"$(nproc)" -n1 -t -0 "${formatter[@]}"
 }
 
 if [[ -n "$FORMATTER" ]]; then
This page took 0.024584 seconds and 4 git commands to generate.