Why fork the whole ejabberd tree ?
Eric Cestari - cstar - May 16, 2009I had the question on PlanetErlang.
Why have you put whole ejabberd source to the repository? You could just put your modules to avoid constant merging from upstream.
Thank you, Anton, for enabling me to express some love to git and github.
The short answer
It’s easy and fun.
The longer answer
The early version of the code was actually in a separate private SVN repository. Part of my install procedure was copying the beams into the ejabberd ebin folder. But each time mod_muc or mod_pubsub modules were updated I had to launch FileMerge and merge things. And those modules are not slim.
Enters git and github. Brian J. Cully has a script updating every hour his ejabberd repository on github from the Process One svn repository.
My own ejabberd repository is fork from his.
And having my own tree up-to-date is only a matter of one (1) command :
“github pull bjc master“
Run sudo gem install github for installing the github gem.
Merges are done automatically. Of course the occasional conflict may arise, but whatever the process, I cannot avoid it.
Pushing to my github repository is also one command :
“git push origin master“
And if I want to send a patch right up to Process One ?
Say for pubsub …
“git diff bjc/master – src/mod_pubsub > pubsub.patch“
Contributing is easy
Fork my project, hack, push, pull request.
Can it be any simpler ? (This question is not rethorical)
Categories: Blogs Eric Cestari
Comments
No comments so far, you could be the first.Add comment
Erlang on Twitter
» wjlroe (Will Roe): #erlang #otp in action on my #kindle, yeah! http://twitpic.com/2my7vh
» jianzwang (Jianzhi Wang): erlang/mnesia/CAP/Two-phase commit都是需要安静下来仔细琢磨的东西,一旦决定使用,将会面临极大的风险
» fprogblogs (ФП-Блоги): dmzlj пишет: необъяснимое про erlang http://bit.ly/bWR1bK
» fprogblogs (ФП-Блоги): Dmitrii ‘Mamut’ Dimandt пишет: Flymake и Erlang http://bit.ly/cbaWMs
» sbtourist (Sergio Bossa): @dnene +1 for Clojure and/or Erlang :)
» delegatevoid (Timothy Parez): @TheColonial I’ll keep an eye on it… ever never seen anything about erlang before… only mentions from you
» pjimmy (Jimmy P): @TheColonial lol I thought you were just mad at your erlang install..
» TheColonial (OJ): @delegatevoid It’s me, trying to get a regular podcast up for erlang related stuff. Been on the backburner though.
» williamgouvea (William Gouvea): RT @dnene: My now publicly stated goal is to be competent at atleast 1 FP language (out of Scala / Clojure / Haskell / Erlang) by the year end
» williamgouvea (William Gouvea): RT @dnene: Preliminary learning for Scale, Clojure done, Haskell in progress, Erlang in queue
Statistics
Number of aggregated posts: 10084
Number of comments: 564
Most recent article: September 07, 2010
Latest comments
» Simon cadbury on CouchDB Load Balancing and Replication using HAProxy.: Very nice Site number one topic Thanks you.. [url=“http://www.designscopia.com/products/outdoor-media/mobile-ads.asp”]mobile ads design [/url] | [url=“http://www.designscopia.com/products/print-material/stickers.asp”]stickers design [/url]
» dress on Reading Serialized PHP Objects from Erlang: canon lens mugs Nikon Mugs Canon Coffee Lens Mug Nikon Coffee Lens Mug anon coffee mug,canon lens mug,canon mug,canon coffee…
» dress on Fun with processes (Updated): canon lens mugs Nikon Mugs Canon Coffee Lens Mug Nikon Coffee Lens Mug anon coffee mug,canon lens mug,canon mug,canon coffee…