File: 03_diffstat.patch

package info (click to toggle)
rancid 3.14-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,436 kB
  • sloc: sh: 2,627; ansic: 1,683; makefile: 390; exp: 185
file content (17 lines) | stat: -rw-r--r-- 495 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Roland Rosenfeld <roland@debian.org>
Description: add diffstat output to changes e-mail (Closes: #357218)
Bug-Debian: https://bugs.debian.org/357218
Forwarded: https://github.com/haussli/rancid/pull/17

--- a/bin/control_rancid.in
+++ b/bin/control_rancid.in
@@ -718,6 +718,9 @@ if [ -s $TMP.diff ] ; then
 		echo "Commit message: $commitmsg"
 		echo ""
 	  fi
+	  if which diffstat >/dev/null ; then
+		diffstat $TMP.diff
+	  fi
 	  cat $TMP.diff
 	) | $SENDMAIL -t $MAILOPTS
     else