kopia lustrzana https://gitlab.com/sane-project/backends
tools: Fix inconsistent formatting when generating ChangeLog files
Use 12-digit short hashes (which appear in merge commits). The number of digits required to unambiguously identify a commit increases as the Git repository grows. The ChangeLog for the 1.0.27 release has 7-digit short hashes, which are no longer meaningful: 9 digits are needed now. Forcing 12 digits to display here is the solution in the Linux kernel. Do not "decorate" the log with branch or tag names. It is understood that each file starts at a specific release tag (e.g. 1.0.27) and ends at the next tag (1.0.28), or at HEAD for development snapshots. Topic branch names, or the refs "master" and "HEAD", do not need labeling.251-scanner-canon-mf110-910-series-is-not-supported
rodzic
1d259c749a
commit
4dbfa03ec4
|
@ -4,8 +4,8 @@
|
|||
#
|
||||
# License: GPL-3.0+
|
||||
|
||||
git log --date=iso8601 --decorate=short 1.0.28..HEAD \
|
||||
| sed 's/^[ \t]*$//' \
|
||||
git log --date=iso8601 --no-decorate --abbrev=12 1.0.28..HEAD \
|
||||
| sed 's/[[:space:]]*$//' \
|
||||
> ChangeLog
|
||||
|
||||
cat << EOF >> ChangeLog
|
||||
|
|
Ładowanie…
Reference in New Issue