Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Git.pm: do not break inheritance
author
Christian Jaeger
<christian@jaeger.mine.nu>
Sat, 18 Oct 2008 18:25:12 +0000
(20:25 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 19 Oct 2008 21:46:33 +0000
(14:46 -0700)
Make it possible to write subclasses of Git.pm
Signed-off-by: Christian Jaeger <christian@jaeger.mine.nu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
perl/Git.pm
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f430c8e
)
diff --git
a/perl/Git.pm
b/perl/Git.pm
index 6aab712e6ac6513b0b46958d93d536ef975276b4..ba94453781c98a97a95c65999873fc28b013340d 100644
(file)
--- a/
perl/Git.pm
+++ b/
perl/Git.pm
@@
-1203,8
+1203,7
@@
=head1 COPYRIGHT
# the method was called upon an instance and (undef, @args) if
# it was called directly.
sub _maybe_self {
- # This breaks inheritance. Oh well.
- ref $_[0] eq 'Git' ? @_ : (undef, @_);
+ UNIVERSAL::isa($_[0], 'Git') ? @_ : (undef, @_);
}
# Check if the command id is something reasonable.