Package: devscripts
Version: 2.10.2
Severity: wishlist
Tags: patch

Hi,

This is an additional patch to #381152 "please allow specifications of
files to check in". It automatically adds debian/changelog to the list
of files to commit so it is not necessary to list it manually.

This way one can either:

 $ debcommit

to commit all changes, or

 $ debcommit some/file

which will take the commit message from debian/changelog, commit
some/file and debian/changelog

Without this patch one has to always remember to add debian/changelog to
the list of files to commit, as it makes no sense to omit
debian/changelog from the commit - the changelog entries are still used
on the next debcommit.


Thanks for considering,
    dam

-- System Information:
Debian Release: lenny/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-1-686 (SMP w/2 CPU cores)
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages devscripts depends on:
ii  debianutils                   2.18       Miscellaneous utilities specific t
ii  dpkg-dev                      1.13.25    package building tools for Debian
ii  libc6                         2.5-1      GNU C Library: Shared libraries
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  sed                           4.1.5-1    The GNU sed stream editor

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

-- no debconf information
diff -ru devscripts-2.10.2.orig/scripts/debcommit.pl 
devscripts-2.10.2/scripts/debcommit.pl
--- devscripts-2.10.2.orig/scripts/debcommit.pl 2007-03-23 18:04:33.000000000 
+0200
+++ devscripts-2.10.2/scripts/debcommit.pl      2007-04-17 10:32:05.000000000 
+0300
@@ -43,7 +43,8 @@
 
 =item I<files to commit>
 
-Specify which files to commit. Commits all files if not used.
+Specify which files to commit. debian/changelog is automatically added to the
+list. Commits all changes if not used.
 
 =over 4
 
@@ -100,6 +101,7 @@
 }
 
 my @files_to_commit = @ARGV;
+push @files_to_commit, 'debian/changelog' if @files_to_commit;
 
 my $prog=getprog();
 if (! -e "debian/changelog") {

Reply via email to