[ADD] script repo forall diff last version and stat

- Add erplibre status for docker repo show status
This commit is contained in:
Mathieu Benoit 2021-07-01 03:18:56 -04:00
parent 511c722bbc
commit 4782f4f77a
5 changed files with 34 additions and 1 deletions

View file

@ -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:

View file

@ -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:

View file

@ -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; \
"

View file

@ -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

View file

@ -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