* Fix Vcs-Browser url. Closes: #636926
* Propigate nonzero exit status from doit_redir. Closes: #600724
+ * 'pristine-tar list' displays a list of tarballs that are available for
+ checkout.
-- Joey Hess <joeyh@debian.org> Sun, 07 Aug 2011 08:53:21 -0400
B<pristine-tar> [-vdk] checkout I<tarball>
+B<pristine-tar> [-vdk] list
+
=head1 DESCRIPTION
pristine-tar can regenerate an exact copy of a pristine upstream tarball
This regenerates a copy of the specified I<tarball> using information
previously saved in version control by B<pristine-tar commit>.
+=item pristine-tar list
+
+This lists tarballs that pristine-tar is able to checkout from version
+control.
+
=back
=head1 OPTIONS
ci => [\&commit, 1],
checkout => [\&checkout, 1],
co => [\&checkout, 1],
+ list => [\&list, 0],
},
options => {
"m|message=s" => \$message,
message("successfully generated $tarball");
}
+
+sub list {
+ my $branch="pristine-tar";
+ my $vcs=vcstype();
+ if ($vcs eq "git") {
+ my $b=git_findbranch($branch);
+ if (defined $b) {
+ open (LIST, "git ls-tree $b --name-only |");
+ while (<LIST>) {
+ chomp;
+ next unless s/\.delta$//;
+ print $_."\n";
+ }
+ }
+ else {
+ die "unsupported vcs $vcs";
+ }
+}
+
+}