diff --git a/Makefile b/Makefile index d99e354..30bc7d8 100644 --- a/Makefile +++ b/Makefile @@ -352,11 +352,21 @@ repo_configure_all: repo_configure_group_code_generator: ./script/update_manifest_local_dev_code_generator.sh -# configure only group code_generator +# Show git status for all repo .PHONY: repo_show_status repo_show_status: ./.venv/repo forall -pc "git status -s" +# Show git diff for all repo from last tag version release +.PHONY: repo_diff_from_last_version +repo_diff_from_last_version: + ./script/repo_diff_last_version.sh + +# Show git diff statistique for all repo from last tag version release +.PHONY: repo_diff_stat_from_last_version +repo_diff_stat_from_last_version: + ./script/repo_diff_stat_last_version.sh + # change all repo to ssh on all remote .PHONY: repo_use_all_ssh repo_use_all_ssh: diff --git a/doc/RELEASE.md b/doc/RELEASE.md index ff283f3..48a624b 100644 --- a/doc/RELEASE.md +++ b/doc/RELEASE.md @@ -49,6 +49,14 @@ git diff v#.#.#..HEAD ./.venv/repo forall -pc "git diff ERPLibre/v#.#.#..HEAD" ``` +Simplification tools: +```bash +# Short version with statistique +make repo_diff_stat_from_last_version +# Long version +make repo_diff_from_last_version +``` + Update file [CHANGELOG.md](../CHANGELOG.md) and create a section with new version, use next command to read all changes. Create a branch release/#.#.# and create a pull request to branch master with your commit: diff --git a/script/docker/docker_repo_show_status.sh b/script/docker/docker_repo_show_status.sh index a5951bf..ba55bb5 100755 --- a/script/docker/docker_repo_show_status.sh +++ b/script/docker/docker_repo_show_status.sh @@ -6,4 +6,5 @@ BASENAME=$(basename "${CURRENT}") docker exec -u root -ti ${BASENAME}_ERPLibre_1 /bin/bash -c "\ cd /ERPLibre; \ ./.venv/repo forall -pc 'git status -s'; \ +git status -s; \ " diff --git a/script/repo_diff_last_version.sh b/script/repo_diff_last_version.sh new file mode 100755 index 0000000..6a13911 --- /dev/null +++ b/script/repo_diff_last_version.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) +./.venv/repo forall -pc "git diff ERPLibre/${LAST_TAG}..HEAD" + +# For actual repo +git diff ${LAST_TAG}..HEAD diff --git a/script/repo_diff_stat_last_version.sh b/script/repo_diff_stat_last_version.sh new file mode 100755 index 0000000..1ffac71 --- /dev/null +++ b/script/repo_diff_stat_last_version.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) +./.venv/repo forall -pc "git diff --stat ERPLibre/${LAST_TAG}..HEAD" + +# For actual repo +git diff --stat ${LAST_TAG}..HEAD