logs: remove git diff from GIT_INFO_ANSI, it's somewhat useless and potentially huge leading to argument list too long

This commit is contained in:
Ricardo Pardini
2023-02-23 17:46:25 -03:00
parent fdcabaad3f
commit 25606ef3c8

View File

@@ -9,9 +9,6 @@ function prepare_ansi_git_info_log_header() {
$(echo -e -n "${bright_blue_color:-}")# GIT status$(echo -e -n "${ansi_reset_color:-}")
$(LC_ALL=C LANG=C git -c color.status=always --work-tree="${SRC}" --git-dir="${SRC}/.git" status | sed -e "${prefix_sed_cmd}" || true)
${dim_line_separator}
$(echo -e -n "${bright_blue_color:-}")# GIT changes$(echo -e -n "${ansi_reset_color:-}")
$(LC_ALL=C LANG=C git --work-tree="${SRC}" --git-dir="${SRC}/.git" diff -u --color | sed -e "${prefix_sed_cmd}" || true)
${dim_line_separator}
GIT_ANSI_HEADER
}