[ADD] script repo forall diff last version and stat
- Add erplibre status for docker repo show status
This commit is contained in:
parent
511c722bbc
commit
4782f4f77a
5 changed files with 34 additions and 1 deletions
12
Makefile
12
Makefile
|
|
@ -352,11 +352,21 @@ repo_configure_all:
|
||||||
repo_configure_group_code_generator:
|
repo_configure_group_code_generator:
|
||||||
./script/update_manifest_local_dev_code_generator.sh
|
./script/update_manifest_local_dev_code_generator.sh
|
||||||
|
|
||||||
# configure only group code_generator
|
# Show git status for all repo
|
||||||
.PHONY: repo_show_status
|
.PHONY: repo_show_status
|
||||||
repo_show_status:
|
repo_show_status:
|
||||||
./.venv/repo forall -pc "git status -s"
|
./.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
|
# change all repo to ssh on all remote
|
||||||
.PHONY: repo_use_all_ssh
|
.PHONY: repo_use_all_ssh
|
||||||
repo_use_all_ssh:
|
repo_use_all_ssh:
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,14 @@ git diff v#.#.#..HEAD
|
||||||
./.venv/repo forall -pc "git diff ERPLibre/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.
|
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:
|
Create a branch release/#.#.# and create a pull request to branch master with your commit:
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,5 @@ BASENAME=$(basename "${CURRENT}")
|
||||||
docker exec -u root -ti ${BASENAME}_ERPLibre_1 /bin/bash -c "\
|
docker exec -u root -ti ${BASENAME}_ERPLibre_1 /bin/bash -c "\
|
||||||
cd /ERPLibre; \
|
cd /ERPLibre; \
|
||||||
./.venv/repo forall -pc 'git status -s'; \
|
./.venv/repo forall -pc 'git status -s'; \
|
||||||
|
git status -s; \
|
||||||
"
|
"
|
||||||
|
|
|
||||||
7
script/repo_diff_last_version.sh
Executable file
7
script/repo_diff_last_version.sh
Executable 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
|
||||||
7
script/repo_diff_stat_last_version.sh
Executable file
7
script/repo_diff_stat_last_version.sh
Executable 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
|
||||||
Loading…
Reference in a new issue