]>
git.madduck.net Git - code/myrepos.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
8cfc9de )
* Ensure parent dir exists prior to checkout. (madduck)
* Output list of failed repos to stderr when -s is used.
* Fix a bug caused by a stupid typo.
* Ensure parent dir exists prior to checkout. (madduck)
* Output list of failed repos to stderr when -s is used.
* Fix a bug caused by a stupid typo.
+ * Add the -n switch, for disabling recursion.
- -- Joey Hess <joeyh@debian.org> Thu, 18 Oct 2007 15:00:0 0 -0400
+ -- Joey Hess <joeyh@debian.org> Thu, 18 Oct 2007 15:18:4 0 -0400
mr (0.3) unstable; urgency=low
mr (0.3) unstable; urgency=low
Expand the statistics line displayed at the end to include information
about exactly which repositories failed and were skipped, if any.
Expand the statistics line displayed at the end to include information
about exactly which repositories failed and were skipped, if any.
+=item -n
+
+Just operate on the repository for the current directory, do not
+recurse into deeper repositories.
+
my $directory=getcwd();
my $verbose=0;
my $stats=0;
my $directory=getcwd();
my $verbose=0;
my $stats=0;
my %config;
my %knownactions;
my %alias;
my %config;
my %knownactions;
my %alias;
"c|config=s" => sub { $ENV{MR_CONFIG}=abs_path($_[1]) },
"v|verbose" => \$verbose,
"s|stats" => \$stats,
"c|config=s" => sub { $ENV{MR_CONFIG}=abs_path($_[1]) },
"v|verbose" => \$verbose,
"s|stats" => \$stats,
+ "n|no-recurse" => \$no_recurse,
);
if (! $result || @ARGV < 1) {
die("Usage: mr [-d directory] action [params ...]\n".
);
if (! $result || @ARGV < 1) {
die("Usage: mr [-d directory] action [params ...]\n".
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;
my $d=$directory;
$dir.="/" unless $dir=~/\/$/;
$d.="/" unless $d=~/\/$/;
+ next if $no_recurse && $d ne $dir;
next if $dir ne $d && $dir !~ /^\Q$d\E/;
push @repos, [$dir, $topdir, $subdir];
}
next if $dir ne $d && $dir !~ /^\Q$d\E/;
push @repos, [$dir, $topdir, $subdir];
}