I am trying to collect Git information into file and am doing
execute_process(
COMMAND git log -1 --format=full && echo "Modified files:" && git ls-files -m
OUTPUT_FILE "git_log"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
or
execute_process(
COMMAND git log -1 --format=full
COMMAND echo "Modified files:"
COMMAND git ls-files -m
OUTPUT_FILE "git_log"
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
)
And in both cases don't see full content. In first case I see empty file and in second -- only output of last command.
How to gather all in one file?