-- Leo's gemini proxy

-- Connecting to gmi.osiux.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=es_AR

`git-tag-changelog`


AUTHOR: Osiris Alejandro Gomez

EMAIL: osiux@osiux.com

DATE: 2023-05-25 19:45


[IMG]

[1]


llamame estructurado!


Hace tiempo que escribo los mensajes de *commit* de `git` ^1[2] de manera estructurada, aunque en algo se parece, no es exactamente `ConventionalCommits` ^2[3], 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[4].


`git-tag-changelog`


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


Si bien existe `Common Changelog` ^6[7], 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[8], el cual se puede ver completo desde el *repo* ^8[9].


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

 - this project adheres to [Semantic Versioning](https://semver.gmi/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...


cómo escribir rápidamente mensajes de commit de git usando vim[10]

git commit timesum[11]

git `post-commit` *ChangeLog*[12]

generar *ChangeLog* en `org-mode` usando `git log`[13]


ChangeLog


`2023-05-25 21:34`[14] agregar `git-tag-changelog`


1: file:img/git-bash-utils/git-tag-changelog.png

2: https://git-scm.com/

3: https://www.conventionalcommits.gmi/en/v1.0.0/

4: https://gitlab.com/osiux/git-bash-utils/-/blob/develop/git-commit-message

5: https://keepachangelog.com/en/1.1.0/

6: https://gitlab.com/osiux/git-bash-utils/-/blob/develop/git-tag-changelog

7: https://common-changelog.gmi/

8: https://gitlab.com/osiux/git-bash-utils/

9: https://gitlab.com/osiux/git-bash-utils/-/blob/develop/CHANGELOG.md

10: 2022-11-21-howto-quickly-write-git-commit-messages-using-vim.gmi

11: 2021-03-18-git-commit-timesum.gmi

12: 2021-02-03-git-post-commit-changelog.gmi

13: 2021-02-01-git-log-org-changelog.gmi

14: https://gitlab.com/osiux/osiux.gitlab.io/-/commit/4111e44079133f6a4aac06fc574c9d6839ffe95f

-- Response ended

-- Page fetched on Thu May 2 11:33:04 2024