git-tag-changelog

index | about | archive | charlas | docs | links

dot | git | img | plt | tty | uml

git-tag-changelog.png

llamame estructurado!

Hace tiempo que escribo los mensajes de commit de git 1 de manera estructurada, aunque en algo se parece, no es exactamente ConventionalCommits 2, básicamnete agrego un prefijo al mensaje, en ocasiones es filename: y otras veces directory/filename:, dependiendo de la estructura del repositorio.


dce8a19 2023-05-25 19:55 osiris	 git-tag-changelog: remove last line if it's an empty line
2085608 2023-05-23 17:32 osiris	 git-src-common: add reminder DON'T OVERWRITE GIT VARIABLES LIKE GIT_DIR
9c063b9 2023-05-23 17:07 osiris	 git-repos-config: export GIT_REPO with relative directories of project to git-config-set
2b921b9 2023-05-23 17:06 osiris	 git-repos-config: exclude commented lines from .git-repos
43ca562 2023-05-23 17:04 osiris	 git-config-set: use GIT_REPO as repository PATH
5b2d005 2023-05-17 09:48 osiris	 bump-version: reset PATCH when increment MAJOR
67b39ab 2023-05-12 11:07 osiris	 git-clean-all: add script for delete untracked and ignored files and directories
9225c58 2023-05-09 18:15 osiris	 git-repos: allow push --all and push --all --tags in git and https protocol
527d674 2023-05-09 18:11 osiris	 git-repos-sync: synchronize all branchs from remote using .git-repos
8c1e2e9 2023-05-09 18:08 osiris	 git-repos-config: generate basic .git/config usign .git-repos

git-commit-message

Gracias a este formato, se simplifica bastante la lectura y búsqueda de commits, además con la manía de realizar commits atómicos (un cambio a la vez y/o un archivo a la vez) muchas veces utilizo de base el subject previo al usar git-commit-message 3.

git-tag-changelog

El bonus extra es que a partir de esta simple estructura, se facilita enormemente el generar un CHANGELOG 4 de manera automatizada, gracias a git-tag-changelog 5

Si bien existe Common Changelog 6, la salida que logré generar es bastante clara para la lectura, obviamente depende mucho de los mensajes de commit, para obtener un mejor resultado, copio parte del ChangeLog de git-bash-utils 7, el cual se puede ver completo desde el repo 8.


# [_GIT-BASH-UTILS CHANGELOG_](https://gitlab.com/osiux/git-bash-utils)

 - this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [`Unreleased - 2023-05-25`](https://gitlab.com/osiux/git-bash-utils/-/compare/v0.1.0...develop)

### `bump-version`

- reset PATCH when increment MAJOR
- add bump-version to get the next PATCH, MINOR, or MAJOR version

### `git-alias`

- add alias gxp, gxi and gxj to get the next PATCH, MINOR, or MAJOR version based on last tag
- remove functions that are commands and update aliases

### `git-clean-all`

- add script for delete untracked and ignored files and directories

### `git-commit-message`

- remove prefix from subject when file is empty

Tal vez te interese leer…

ChangeLog

Notas al pie de página: