Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function (win, doc) {
- var GIT = function (url) {
- return new _GIT(url);
- };
- var _GIT = function (url) {
- this.url = url;
- };
- _GIT.prototype.getStatement = function (what) {
- switch (what) {
- case 'clone':
- return this.url.replace(/git:\/\/github\.com\/([^\/]+)\/(.+)\.git/i, 'git clone git://github.com/$1/$2.git $1_$2');
- default:
- return '';
- }
- };
- GIT.prototype = _GIT.prototype;
- win.git = GIT;
- }(window, document));
Add Comment
Please, Sign In to add comment