File: get_changes.sh

package info (click to toggle)
lcov 1.16-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,648 kB
  • sloc: perl: 12,078; xml: 3,610; sh: 761; makefile: 236; ansic: 102
file content (13 lines) | stat: -rwxr-xr-x 292 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
#
# Usage: get_changes.sh
#
# Print lcov change log information as provided by Git

TOOLDIR=$(cd $(dirname $0) >/dev/null ; pwd)

cd $TOOLDIR

if ! git --no-pager log --no-merges --decorate=short --color=never 2>/dev/null ; then
	cat "$TOOLDIR/../CHANGES" 2>/dev/null
fi