File: get_changes.sh

package info (click to toggle)
lcov 2.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,412 kB
  • sloc: perl: 27,615; xml: 6,982; sh: 6,977; python: 1,147; makefile: 593; cpp: 455; ansic: 167
file content (13 lines) | stat: -rwxr-xr-x 291 bytes parent folder | download
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