+pristine-tar (0.10) UNRELEASED; urgency=low
+
+ * pristine-tar: Add -m option to specify a commit message.
+
+ -- Joey Hess <joeyh@debian.org> Mon, 11 Feb 2008 12:04:45 -0500
+
pristine-tar (0.9) unstable; urgency=low
* Add smart branching for commits. (Cyril Brulebois)
B<pristine-tar> [-vdk] gendelta tarball delta
-B<pristine-tar> [-vdk] commit tarball [upstream]
+B<pristine-tar> [-vdk] [-m message] commit tarball [upstream]
B<pristine-tar> [-vdk] checkout tarball
Don't clean up the temporary directory on exit.
+=item -m message
+
+Use this option to specify a custom commit message to pristine-tar commit.
+
=head1 LIMITATIONS
Only .tar, .tar.gz, and .tar.bz2 files are currently supported.
my $verbose=0;
my $debug=0;
my $keep=1;
+my $message;
# Force locale to C since tar may output utf-8 filenames differently
# depending on the locale.
sub usage {
print STDERR "Usage: pristine-tar [-vdk] gentar delta tarball\n";
print STDERR " pristine-tar [-vdk] gendelta tarball delta\n";
- print STDERR " pristine-tar [-vdk] commit tarball [upstream]\n";
+ print STDERR " pristine-tar [-vdk] [-m message] commit tarball [upstream]\n";
print STDERR " pristine-tar [-vdk] checkout tarball\n";
exit 1;
}
my $branch="pristine-tar";
my $deltafile=basename($tarball).".delta";
my $idfile=basename($tarball).".id";
- my $commit_message="pristine-tar data for ".basename($tarball);
+ my $commit_message=defined $message ? $message :
+ "pristine-tar data for ".basename($tarball);
my $vcs=vcstype();
if ($vcs eq "git") {
Getopt::Long::Configure("bundling");
if (! GetOptions(
+ "m|message=s" => \$message,
"v|verbose!" => \$verbose,
"d|debug!" => \$debug,
"k|keep!" => \$keep)) {