Re: Problem with Git.pm bidi_pipe methods

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christian Jaeger
Date: Tuesday, October 28, 2008 - 2:12 am

Philippe Bruhat (BooK) wrote:

Not really an answer on how to fix Git.pm, but: you may want to subclass 
Git.pm and add your own methods ad interim. See the thread "[PATCH] 
Git.pm: do not break inheritance" [1] about how to subclass (I see that 
this patch is actually in {next,pu} already, and anyway you can use the 
runtime patching approach I described there).

That approach of using subclasses has two benefits: (a) it will tend to 
make your code work with various versions of Git (i.e. one without a 
fixed command_bidi_pipe method), and (b) you will be much more free to 
extend the code. The drawback will be of course that your inventions 
won't necessarily make it back to Git.pm, but I'm tempted to think that 
some innovation taking place before settling on what should make it back 
to Git.pm (or, if incompatible, possibly a new Git.pm) would be worthwhile.

For an actual example in writing Git subclasses see "[ANNOUNCE] intergit 
repository-linking tool (early release)" [2].

Christian.

[1] http://article.gmane.org/gmane.comp.version-control.git/98568
[2] http://article.gmane.org/gmane.comp.version-control.git/99197

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problem with Git.pm bidi_pipe methods, Philippe Bruhat (BooK), (Thu Oct 23, 5:14 pm)
Re: Problem with Git.pm bidi_pipe methods, Christian Jaeger, (Tue Oct 28, 2:12 am)
Re: Problem with Git.pm bidi_pipe methods, nadim khemir, (Sun Nov 23, 12:03 pm)