mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 17:28:46 +03:00
e0b19a3c62
* Fix unreleased.sh The usage of `git log` to avoid printing the diff of each commit turned out to cause the commit to be interpreted as a revision range reachable from said commit, which breaks unreleased.sh. This commit reverts to using `git show` but with `--quiet` to avoid printing the diff, as originally planned. * Update unreleased.sh Co-Authored-By: Samir Talwar <samir.talwar@digitalasset.com>
9 lines
325 B
Bash
Executable File
9 lines
325 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) 2019 The DAML Authors. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
for SHA in $(git log --format=%H "$1"); do
|
|
git show --quiet --format=%b "$SHA" \
|
|
| awk '/^$/{next} toupper($0) ~ /CHANGELOG_END/{flag=0; next} toupper($0) ~ /CHANGELOG_BEGIN/{flag=1; next} flag'
|
|
done
|