daml/unreleased.sh
Stefano Baghino e0b19a3c62 Fix unreleased.sh (#3567)
* 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>
2019-11-21 12:43:11 +00:00

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