On Tue, Feb 07, 2006 at 10:44:08PM +1100, Anand Kumria wrote:
> 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

Thanks for patch.  Note change below to avoid spurious warnings.

> --- /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;

This should read:

+       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
> 

   Julian


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

Reply via email to