{"version":3,"sources":["jsdelivr-header.js","/npm/smartgit@1.0.5/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,MAAM,EAAI,QAAQ,KACZ,QAAU,QAAQ,sBAClB,2BAA6B,QAAQ,8BAC3C,QAAQ,QAAU,2BAA2B,QAI7C,QAAQ,oBAAsB,CAAC,EAAS,KACpC,IAAI,EAAO,EAAE,QACb,QAAQ,UAAU,GAAG,UAAU,GAC/B,QAAQ,QAAQ,KAAK,aAAa,KAAW,KAC7C,IAAI,EAAU,IAAI,2BAA2B,QAAQ,GAErD,OADA,EAAK,QAAQ,GACN,EAAK,OAAO,EAKvB,QAAQ,mBAAsB,IAC1B,IAAI,EAAO,EAAE,QACb,QAAQ,UAAU,GAAG,UAAU,GAC/B,QAAQ,QAAQ,KAAK,MAAM,iBAC3B,IAAI,EAAU,IAAI,2BAA2B,QAAQ,GAErD,OADA,EAAK,QAAQ,GACN,EAAK,OAAO","file":"/npm/smartgit@1.0.5/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/smartgit@1.0.5/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nconst q = require(\"q\");\nconst plugins = require(\"./smartgit.plugins\");\nconst smartgit_classes_gitrepo_1 = require(\"./smartgit.classes.gitrepo\");\nexports.GitRepo = smartgit_classes_gitrepo_1.GitRepo;\n/**\n * creates a new GitRepo Instance after cloning a project\n */\nexports.createRepoFromClone = (fromArg, toArg) => {\n    let done = q.defer();\n    plugins.smartfile.fs.ensureDir(toArg);\n    plugins.shelljs.exec(`git clone ${fromArg} ${toArg}`);\n    let newRepo = new smartgit_classes_gitrepo_1.GitRepo(toArg);\n    done.resolve(newRepo);\n    return done.promise;\n};\n/**\n * creates a new GitRepo instance after initializing a new Git Repository\n */\nexports.createRepoFromInit = (destinationDirArg) => {\n    let done = q.defer();\n    plugins.smartfile.fs.ensureDir(destinationDirArg);\n    plugins.shelljs.exec(`cd ${destinationDirArg} && git init`);\n    let newRepo = new smartgit_classes_gitrepo_1.GitRepo(destinationDirArg);\n    done.resolve(newRepo);\n    return done.promise;\n};\n"]}