debian/0000755000000000000000000000000012261507155007172 5ustar debian/watch0000644000000000000000000000012012261507042010207 0ustar version=3 opts=pasv ftp://invisible-island.net/diffstat/diffstat-([\d\.]+)\.tgz debian/source/0000755000000000000000000000000012261507042010465 5ustar debian/source/format0000644000000000000000000000001412261507042011673 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000020712261507042010244 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autotools-dev debian/patches/0000755000000000000000000000000012261507042010614 5ustar debian/patches/series0000644000000000000000000000006312261507042012030 0ustar 01-check-columns-env-var.patch 02-svn-spaces.patch debian/patches/02-svn-spaces.patch0000644000000000000000000000110312261507042014131 0ustar Description: Handle pathnames with spaces in svn diff format Author: Stuart Prescott --- a/diffstat.c +++ b/diffstat.c @@ -1481,6 +1481,10 @@ do_file(FILE *fp, const char *default_na "*** %[^\t]\t(%[^)])\t(%[^)])", b_fname, b_temp1, b_temp2) == 3 && !version_num(b_fname)) + || (sscanf(buffer, + "*** %[^\t]\t(%[^)])\t(%[^)])", + b_fname, b_temp1, b_temp2) == 3 + && !version_num(b_fname)) || sscanf(buffer, "*** %[^\t ]%[\t ]%[^ ] %[^ ] %d %d:%d:%d %d", b_fname, debian/patches/01-check-columns-env-var.patch0000644000000000000000000000145412261507042016166 0ustar Author: Michael B. Trausch Author: Francois Marier Subject: Consider environment when determining default output columns Origin: http://launchpadlibrarian.net/13009086/columns_for_tty.ubuntu.debdiff Forwarded: yes Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/diffstat/+bug/209537 Last-Update: 2012-01-04 --- a/diffstat.c +++ b/diffstat.c @@ -2393,10 +2393,19 @@ int main(int argc, char *argv[]) { int j; + const int STDOUT = 1; + char *env_columns; char version[80]; max_width = 80; + env_columns = getenv("COLUMNS"); + if(env_columns) { + if(isatty(STDOUT)) { + max_width = atoi(env_columns); + } + } + while ((j = getopt_helper(argc, argv, "bcCdD:e:f:hkKlmn:N:o:p:qr:RsS:tuvVw:", 'h', 'V')) != -1) { debian/docs0000644000000000000000000000000712261507042010035 0ustar README debian/dirs0000644000000000000000000000001012261507042010040 0ustar usr/bin debian/copyright0000644000000000000000000000363712261507042011131 0ustar This is Debian's prepackaged version of the diffstat utility, which was written by Thomas E. Dickey . It was downloaded from: ftp://invisible-island.net/diffstat/ Copyright: /****************************************************************************** * Copyright 1994-2012,2013 by Thomas E. Dickey * * All Rights Reserved. * * * * Permission to use, copy, modify, and distribute this software and its * * documentation for any purpose and without fee is hereby granted, provided * * that the above copyright notice appear in all copies and that both that * * copyright notice and this permission notice appear in supporting * * documentation, and that the name of the above listed copyright holder(s) * * not be used in advertising or publicity pertaining to distribution of the * * software without specific, written prior permission. * * * * THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD * * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND * * FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE * * FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR * * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * ******************************************************************************/ The Debian packaging is: Copyright (C) 2012-2014 Sandro Tosi and is licensed under the same terms as upstream code. debian/control0000644000000000000000000000135212261507042010571 0ustar Source: diffstat Section: devel Priority: optional Maintainer: Sandro Tosi Build-Depends: debhelper (>= 9), autotools-dev (>= 20100122.1) Standards-Version: 3.9.5 Homepage: http://invisible-island.net/diffstat/ Vcs-Git: git://anonscm.debian.org/collab-maint/diffstat.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/diffstat.git;a=summary Package: diffstat Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: produces graph of changes introduced by a diff file This program is a simple filter that reads the output of the 'diff' program, and produces a histogram of the total number of lines that were changed. It is useful for scanning a patch file to see which files were changed. debian/compat0000644000000000000000000000000212261507042010363 0ustar 9 debian/changelog0000644000000000000000000002457112261507042011050 0ustar diffstat (1.58-1) unstable; urgency=low * New upstream release * debian/copyright - extended packaging copyright years * debian/control - bump Standards-Version to 3.9.5 (no changes needed) -- Sandro Tosi Fri, 03 Jan 2014 11:16:42 +0100 diffstat (1.57-1) unstable; urgency=low * New upstream release * debian/control - use canonical URLs for alioth service - bump Standards-Version to 3.9.4 (no changes needed) -- Sandro Tosi Sat, 28 Sep 2013 17:02:23 +0200 diffstat (1.56-1) experimental; urgency=low * New upstream release * debian/copyright - update upstream copyright years * debian/patches/* - refreshed for new upstream code * debian/{compat, control} - switch to DH level 9, implies hardening flags -- Sandro Tosi Sat, 13 Apr 2013 14:26:02 +0200 diffstat (1.55-4) experimental; urgency=low * debian/{control,rules} - use autotools-dev to update config.guess and config.sub automatically; thanks to Colin Watson for the report and patch; Closes: #700118 * debian/copyright - extended packaging copyright years -- Sandro Tosi Fri, 22 Feb 2013 22:50:22 +0100 diffstat (1.55-3) unstable; urgency=low * debian/patches/02-svn-spaces.patch - handle pathnames with spaces in svn diff format; thanks to Stuart Prescott for the report and patch; Closes: #675465 * debian/control - bump Standards-Version to 3.9.3 (no changes needed) -- Sandro Tosi Sat, 02 Jun 2012 19:08:11 +0200 diffstat (1.55-2) unstable; urgency=low * Adopting package: thanks Francois for his previous work! Closes: #654551 * debian/copyright - added packaging notice -- Sandro Tosi Sat, 07 Jan 2012 11:09:27 +0100 diffstat (1.55-1) unstable; urgency=low * New upstream release: + add -R option, like patch's, to reverse the order of the comparison * Update check-columns-env-var patch * Bump Standards-Version to 3.9.2 -- Francois Marier Wed, 04 Jan 2012 16:42:22 +1300 diffstat (1.54-1) unstable; urgency=low * New upstream release: + correct counts used for new files when -S/-D options are used + remove the temporary directory on error * Bump Standards-Version up to 3.9.1 * Bump debhelper compatibility to 8 -- Francois Marier Wed, 22 Dec 2010 13:32:45 +1300 diffstat (1.53-1) unstable; urgency=low * New upstream release: - fix the -c option which broke in 1.52 -- Francois Marier Mon, 19 Jul 2010 23:10:08 +1200 diffstat (1.52-1) unstable; urgency=low * New upstream release: - new "-C" option to show the histogram using SGR colors - new "-s" option to show only the summary line * Drop manpage hyphens patch (applied upstream) -- Francois Marier Sat, 17 Jul 2010 10:35:59 +1200 diffstat (1.51-2) unstable; urgency=low * Adopt this package (closes: #588876) * Consider the COLUMNS environment variable when determining the default output width (LP: #209537). Thanks to Michael B. Trausch! * Add a patch to fix manpage hyphens (lintian notice) * Add homepage field to debian/control * Bump Standards Version to 3.9.0 and debhelper version to 7 * Mention git repo in debian/control * Add a watch file for the ftp site * Switch to 3.0 (quilt) source package format * Use a minimal debian/rules makefile -- Francois Marier Tue, 13 Jul 2010 21:52:06 +1200 diffstat (1.51-1) unstable; urgency=low * New upstream release. - Automagic detection and handling of compressed diffs. (closes: 491575) - Handle special case of no-newline message from some diffs. (closes: 563875) * Orphan this package (set maintainer to Debian QA Group). -- Greg Norris Mon, 12 Jul 2010 14:57:14 -0500 diffstat (1.47-1) unstable; urgency=low * New upstream release. - modify to work with patch ".rej" files, which do not have a header to indicate which file is affected. * Update to standards version 3.8.1 (no changes required) -- Greg Norris Mon, 04 May 2009 13:53:23 -0500 diffstat (1.46-1) unstable; urgency=low * New upstream release. - Added the "-q" option, which suppresses the "0 files changed" message for empty diffs. (closes: 488248) - Added the "-S", "-D" and "-m" options, which provide a way to show the amount of difference relative to the total size of the files. -- Greg Norris Thu, 02 Oct 2008 19:39:31 -0500 diffstat (1.45-2) unstable; urgency=low * Fixed the "clean" target in "debian/rules". (closes: #442543) -- Greg Norris Mon, 17 Sep 2007 21:07:47 -0500 diffstat (1.45-1) unstable; urgency=low * New upstream release. - Added the "-b" option, which causes lines matching "Binary files XXX and YYY differ" in the diff to be ignored. (closes: #379380) -- Greg Norris Wed, 05 Sep 2007 20:22:55 -0500 diffstat (1.44-1) unstable; urgency=low * New upstream release. -- Greg Norris Thu, 30 Aug 2007 18:45:45 -0500 diffstat (1.43-2) unstable; urgency=low * Fix formatting of the Depends entry in debian/control. (closes: #392750) -- Greg Norris Fri, 13 Oct 2006 21:50:34 -0500 diffstat (1.43-1) unstable; urgency=low * New upstream release. -- Greg Norris Tue, 18 Jul 2006 19:04:02 -0500 diffstat (1.42-1) unstable; urgency=low * New upstream release. - Do not ignore pathnames in /tmp/. (closes: #376086) * Bump policy version to 3.7.2 (no changes required). -- Greg Norris Sun, 9 Jul 2006 10:59:00 -0500 diffstat (1.41-1) unstable; urgency=low * New upstream release. (closes: #323328) - New options: -l, -r, -t - The "-f" option supports additional arguments - Performance improvements * Correct the package description, which was missing the word "filter". I have, however, decided to retain the upstream README file. Yes it's redundant, matching the package description almost exactly, but it's also quite small and harmless. (closes: Bug#323042) -- Greg Norris Wed, 24 Aug 2005 20:52:23 -0500 diffstat (1.39-1) unstable; urgency=low * New upstream release. -- Greg Norris Sun, 10 Apr 2005 12:15:26 -0500 diffstat (1.38-1) unstable; urgency=low * New upstream release. - Fixes an additional case where lines beginning with "---" were handled improperly. (closes: #294923) -- Greg Norris Mon, 7 Mar 2005 13:20:47 -0600 diffstat (1.35-1) unstable; urgency=low * New upstream release. - Handle lines beginning with "---" in unified diffs. (closes: #264098) * Bump policy version to 3.6.1 (no changes required). -- Greg Norris Thu, 11 Nov 2004 17:11:57 -0600 diffstat (1.34-1) unstable; urgency=low * New upstream release. -- Greg Norris Thu, 18 Dec 2003 22:06:44 -0600 diffstat (1.33-1) unstable; urgency=low * New upstream release. (closes: #199061) -- Greg Norris Sun, 29 Jun 2003 21:21:51 -0500 diffstat (1.32-1) unstable; urgency=low * New upstream release. - Deleting lines beginning with "--" should no longer confuse diffstat. (closes: #155000) - Upstream has opted to make diffstat quiet by default, and added the "-v" option to specificy verbose output. The "-q" option (see bug#170947) has therefore been removed. -- Greg Norris Mon, 13 Jan 2003 17:01:38 -0600 diffstat (1.31-3) unstable; urgency=low * Add a "-q" (quiet) option, which suppresses status information normally written to stderr. Thanx to Richard Braakman for providing the patch. (closes: #170947) -- Greg Norris Thu, 2 Jan 2003 17:57:30 -0600 diffstat (1.31-2) unstable; urgency=low * Rebuild against libc6 2.3 (closes: #167804) -- Greg Norris Mon, 4 Nov 2002 19:30:57 -0600 diffstat (1.31-1) unstable; urgency=low * New maintainer (with permission from Scott ;-). * New upstream release (closes: #82969, #126452, #161406) * No longer has problems with "new style" GNU diffs (closes: #160627) * Correct the upstream URL (closes: #159415) * I can't reproduce bug#155000 (diffstat gets confused on funny lines...) with this version. Confirmation would be welcome. * Update to standards version 3.5.7 (no changes required) -- Greg Norris Mon, 21 Oct 2002 18:13:13 -0500 diffstat (1.28-1) unstable; urgency=low * New upstream release. * Understands compressed diffs (Fixes #53975) -- Scott K. Ellis Tue, 9 May 2000 10:04:26 -0400 diffstat (1.27-1) unstable; urgency=low * Now understands debian diff files (Fixes #20745) * New upstream release. -- Scott K. Ellis Sun, 17 May 1998 12:05:08 -0400 diffstat (1.26-2) frozen unstable; urgency=low * Fix typo in rules file. (fixes #19634) -- Scott K. Ellis Tue, 24 Mar 1998 10:20:34 -0500 diffstat (1.26-1) unstable; urgency=low * Rewrote debian/rules from scratch to use debhelper with the aid of dh-make. This fixes all lintian warnings. * New upstream release. -- Scott K. Ellis Fri, 6 Mar 1998 15:56:31 -0500 diffstat (1.25-7) unstable; urgency=low * Changed rules to not use sudo (Fixes #11340, #15455) -- Scott K. Ellis Mon, 19 Jan 1998 14:00:01 -0500 diffstat (1.25-6) unstable; urgency=low * Recompiled with glibc * Change maintainer address to debian.org one. -- Scott K. Ellis Wed, 18 Jun 1997 21:29:31 -0400 diffstat (1.25-5) unstable; urgency=low * New Maintainer -- Scott K. Ellis Mon, 17 Feb 1997 21:21:16 -0500 diffstat (1.25-4) unstable; urgency=low * New maintainer's email address. * Removed bogus menu entry. Oops. -- Joey Hess Tue, 24 Dec 1996 15:25:30 -0500 diffstat (1.25-3) unstable; urgency=low * Closed bug #4990. -- Joey Hess Sun, 10 Nov 1996 18:50:42 -0500 diffstat (1.25-2) non-free; urgency=low * Stripped binary (#5066) * Complies to new packaging format (and uses debmake). * Added more info to the copyright file. -- Joey Hess Tue, 29 Oct 1996 13:50:13 -0500 1.25-1 * Initial release.