Package: git-buildpackage Version: 0.4.43 Severity: wishlist Tags: patch When using the --auto option, git-dch should try to look for the latest commit in which debian/changelog was touched and start from there if there is no snapshot header. The attached patch does this.
-- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages git-buildpackage depends on: ii devscripts 2.10.43 scripts to make the life of a Debi ii git-core 1:1.5.6.5-2 fast, scalable, distributed revisi ii python 2.5.2-3 An interactive high-level object-o ii python-dateutil 1.4.1-2 powerful extensions to the standar ii python-support 0.8.7 automated rebuilding support for P git-buildpackage recommends no packages. Versions of packages git-buildpackage suggests: pn git-load-dirs <none> (no description available) ii pristine-tar 0.19 regenerate pristine tarballs -- no debconf information
diff --git a/git-dch b/git-dch index 1b0e34d..94ce59f 100755 --- a/git-dch +++ b/git-dch @@ -249,6 +249,11 @@ def guess_snapshot_commit(cp): sr = re.search(snapshot_re, cp['Changes']) if sr: return sr.group('commit') + opts = ['--pretty=format:%H', '-1', 'debian/changelog'] + cmd = ['git', 'log'] + p = subprocess.Popen(cmd + opts, stdout=subprocess.PIPE) + last = p.stdout.readline() + return last def main(argv):