Package: devscripts
Version: 2.9.11
Severity: normal
File: /usr/bin/debcommit
Tags: patch

Hi,

Please find attached changes to extract out the message for debcommit
from .git based package trees

Anand

--- /usr/bin/debcommit  2006-01-21 06:47:54.000000000 +1100
+++ /home/anand/bin/debcommit   2006-02-06 11:21:14.000000000 +1100
@@ -223,13 +223,17 @@
        $prog eq 'tla' || $prog eq 'baz' || $prog eq 'bzr' || $prog eq 'git') {
        $ret='';
        my $subcommand;
+       my $subcommandopt;
        if ($prog eq 'cvs' || $prog eq 'svn' || $prog eq 'svk' ||
            $prog eq 'bzr' || $prog eq 'git' ) {
            $subcommand = 'diff';
        } else {
            $subcommand = 'file-diff';
        }
-       foreach my $line (`$prog $subcommand debian/changelog`) {
+       if ($prog eq 'git') {
+           $subcommandopt = '--cached';
+       }
+       foreach my $line (`$prog $subcommand $subcommandopt debian/changelog`) {
            next unless $line=~/^\+  /;
            $line=~s/^\+  //;
            next if $line=~/^\s*\[.*\]\s*$/; # maintainer name

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages devscripts depends on:
ii  debianutils                   2.15.2     Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.11    package building tools for Debian
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an
ii  perl                          5.8.7-10   Larry Wall's Practical Extraction 
ii  sed                           4.1.2-8    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  fakeroot                      1.5.6      Gives a fake root environment

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to