top

Package vcs provides the ability to work with varying version control systems (VCS), also known as source control systems (SCM) though the same interface.

This package includes a function that attempts to detect the repo type from the remote URL and return the proper type. For example,

remote := "https://github.com/Masterminds/vcs"
local, _ := ioutil.TempDir("", "go-vcs")
repo, err := NewRepo(remote, local)

In this case repo will be a GitRepo instance. NewRepo can detect the VCS for numerous popular VCS and from the URL. For example, a URL ending in .git that's not from one of the popular VCS will be detected as a Git repo and the correct type will be returned.

If you know the repository type and would like to create an instance of a specific type you can use one of constructors for a type. They are NewGitRepo, NewSvnRepo, NewBzrRepo, and NewHgRepo. The definition and usage is the same as NewRepo.

Once you have an object implementing the Repo interface the operations are the same no matter which VCS you're using. There are some caveats. For example, each VCS has its own version formats that need to be respected and checkout out branches, if a branch is being worked with, is different in each VCS.

Imported by 363 package(s) ΒΆ

  1. github.com/2opremio/helm/config
  2. github.com/Azure/draft/pkg/draft/pack/repo/installer
  3. github.com/Azure/draft/pkg/plugin/installer
  4. github.com/Barberrrry/glide/cfg
  5. github.com/Barberrrry/glide/cmd
  6. github.com/Barberrrry/glide/util
  7. github.com/ChrisHines/dep
  8. github.com/Civil/dep
  9. github.com/EwanValentine/dep
  10. github.com/FGrosse/glide/action
  11. github.com/FGrosse/glide/cfg
  12. github.com/FGrosse/glide/msg
  13. github.com/FGrosse/glide/repo
  14. github.com/FGrosse/glide/util
  15. github.com/Go-zh/dep
  16. github.com/Go-zh/dep/gps
  17. github.com/JackSpirou/glide/cmd
  18. github.com/Kegsay/apicompat
  19. github.com/Masterminds/glide-report
  20. github.com/Masterminds/glide-report/rules
  21. github.com/Masterminds/glide/action
  22. github.com/Masterminds/glide/cfg
  23. github.com/Masterminds/glide/msg
  24. github.com/Masterminds/glide/repo
  25. github.com/Masterminds/glide/util
  26. github.com/ReSTARTR/gps
  27. github.com/Rhymond/dep
  28. github.com/Skarlso/glide/action
  29. github.com/Skarlso/glide/cfg
  30. github.com/Skarlso/glide/repo
  31. github.com/Skarlso/glide/util
  32. github.com/TheHippo/glide/cmd
  33. github.com/adg/gps
  34. github.com/ahmetb/dep
  35. github.com/akutz/dep/gps
  36. github.com/akutz/glide/action
  37. github.com/akutz/glide/cfg
  38. github.com/akutz/glide/cmd
  39. github.com/akutz/glide/msg
  40. github.com/akutz/glide/repo
  41. github.com/akutz/glide/util
  42. github.com/albrow/glide/action
  43. github.com/albrow/glide/cfg
  44. github.com/albrow/glide/msg
  45. github.com/albrow/glide/repo
  46. github.com/albrow/glide/util
  47. github.com/alde/glide/cfg
  48. github.com/alde/glide/repo
  49. github.com/alde/glide/util
  50. github.com/andrewzeneski/glide/cfg
  51. github.com/andrewzeneski/glide/cmd
  52. github.com/andrewzeneski/glide/util
  53. github.com/avidal/dep
  54. github.com/avvmoto/glide/action
  55. github.com/avvmoto/glide/cfg
  56. github.com/avvmoto/glide/msg
  57. github.com/avvmoto/glide/repo
  58. github.com/avvmoto/glide/util
  59. github.com/bacongobbler/glide/cfg
  60. github.com/bacongobbler/glide/repo
  61. github.com/bacongobbler/glide/util
  62. github.com/bearmini/dep/gps
  63. github.com/belak/base16-builder-go
  64. github.com/bhenderson/dep/gps
  65. github.com/blainsmith/dep
  66. github.com/breml/dep/gps
  67. github.com/briansorahan/dep
  68. github.com/brianstarke/dep
  69. github.com/bryanpaluch/glide/cfg
  70. github.com/bryanpaluch/glide/repo
  71. github.com/bryanpaluch/glide/util
  72. github.com/cafebazaar/helm/config
  73. github.com/campoy/dep
  74. github.com/caseyhadden/glide/cmd
  75. github.com/caseyhadden/glide/util
  76. github.com/caseyhadden/glide/yaml
  77. github.com/corona10/dep
  78. github.com/cpg1111/glide/cmd
  79. github.com/cpg1111/glide/util
  80. github.com/cpg1111/glide/yaml
  81. github.com/cuigh/dep/gps
  82. github.com/daniel-garcia/glide/cfg
  83. github.com/daniel-garcia/glide/repo
  84. github.com/daniel-garcia/glide/util
  85. github.com/deis/helm/config
  86. github.com/dictav/dep
  87. github.com/dlespiau/dep
  88. github.com/dmitris/dep/gps
  89. github.com/dmitris/glide/cfg
  90. github.com/dmitris/glide/repo
  91. github.com/dmitris/glide/util
  92. github.com/dutchcoders/dep
  93. github.com/dvwallin/glide/cmd
  94. github.com/eliquious/glide/action
  95. github.com/eliquious/glide/cfg
  96. github.com/eliquious/glide/msg
  97. github.com/eliquious/glide/repo
  98. github.com/eliquious/glide/util
  99. github.com/favadi/glide/cfg
  100. github.com/favadi/glide/cmd
  101. github.com/favadi/glide/util
  102. github.com/felipeweb/dep
  103. github.com/fibonacci1729/glide/cfg
  104. github.com/fibonacci1729/glide/repo
  105. github.com/fibonacci1729/glide/util
  106. github.com/fighterlyt/glide/action
  107. github.com/fighterlyt/glide/cfg
  108. github.com/fighterlyt/glide/msg
  109. github.com/fighterlyt/glide/repo
  110. github.com/fighterlyt/glide/util
  111. github.com/franciscocpg/glide/action
  112. github.com/franciscocpg/glide/cfg
  113. github.com/franciscocpg/glide/msg
  114. github.com/franciscocpg/glide/repo
  115. github.com/franciscocpg/glide/util
  116. github.com/fschl/glide/cfg
  117. github.com/fschl/glide/repo
  118. github.com/fschl/glide/util
  119. github.com/garywu125/glide/cfg
  120. github.com/garywu125/glide/repo
  121. github.com/garywu125/glide/util
  122. github.com/gdm85/glide/cfg
  123. github.com/gdm85/glide/repo
  124. github.com/gdm85/glide/util
  125. github.com/geramirez/compliance-masonry/tools/vcs
  126. github.com/geramirez/glide/cmd
  127. github.com/geramirez/glide/util
  128. github.com/geramirez/glide/yaml
  129. github.com/giter/glide/action
  130. github.com/giter/glide/cfg
  131. github.com/giter/glide/msg
  132. github.com/giter/glide/repo
  133. github.com/giter/glide/util
  134. github.com/golang/dep/gps
  135. github.com/gomatic/dep
  136. github.com/groob/dep
  137. github.com/haya14busa/dep
  138. github.com/hectorj/glide/cfg
  139. github.com/hectorj/glide/cmd
  140. github.com/hectorj/glide/util
  141. github.com/helm/helm-classic/config
  142. github.com/helm/helm/config
  143. github.com/hoop33/dep/gps
  144. github.com/idubinskiy/dep
  145. github.com/imikushin/glide/cmd
  146. github.com/imikushin/glide/util
  147. github.com/imikushin/glide/yaml
  148. github.com/inoc603/dep
  149. github.com/ionrock/buildpack/core
  150. github.com/itscaro/glide/cmd
  151. github.com/itsjamie/glide/cmd
  152. github.com/jackspirou/glide/cmd
  153. github.com/jchauncey/glide/cmd
  154. github.com/jenkins-x/draft-repo/pkg/draft/pack/repo/installer
  155. github.com/jgeiger/dep
  156. github.com/jlaswell/dep
  157. github.com/jmank88/dep
  158. github.com/joeygibson/glide/action
  159. github.com/joeygibson/glide/cfg
  160. github.com/joeygibson/glide/msg
  161. github.com/joeygibson/glide/repo
  162. github.com/joeygibson/glide/util
  163. github.com/joeygoode/dep
  164. github.com/johnnadratowski/glide/action
  165. github.com/johnnadratowski/glide/cfg
  166. github.com/johnnadratowski/glide/msg
  167. github.com/johnnadratowski/glide/repo
  168. github.com/johnnadratowski/glide/util
  169. github.com/jonboulle/glide/cmd
  170. github.com/jrick/glide/cfg
  171. github.com/jrick/glide/cmd
  172. github.com/jrick/glide/util
  173. github.com/jstemmer/dep
  174. github.com/jstemmer/gps
  175. github.com/karfield/glide/cfg
  176. github.com/karfield/glide/repo
  177. github.com/karfield/glide/util
  178. github.com/keijiyoshida/dep
  179. github.com/kelcecil/glide/action
  180. github.com/kelcecil/glide/cfg
  181. github.com/kelcecil/glide/msg
  182. github.com/kelcecil/glide/repo
  183. github.com/kelcecil/glide/util
  184. github.com/kevin-cantwell/gps
  185. github.com/kildevaeld/apprun
  186. github.com/klaidliadon/glide/cfg
  187. github.com/klaidliadon/glide/repo
  188. github.com/klaidliadon/glide/util
  189. github.com/kngu9/glide/cfg
  190. github.com/kngu9/glide/repo
  191. github.com/kngu9/glide/util
  192. github.com/kshlm/glide/cfg
  193. github.com/kshlm/glide/cmd
  194. github.com/kshlm/glide/util
  195. github.com/kubepack/dep/gps
  196. github.com/kubepack/kubepack/commands
  197. github.com/kubepack/pack/commands
  198. github.com/kubernetes/helm/pkg/plugin/installer
  199. github.com/lamielle/glide/cfg
  200. github.com/lamielle/glide/cmd
  201. github.com/lamielle/glide/util
  202. github.com/lanej/helm/helm/action
  203. github.com/lclarkmichalek/dep
  204. github.com/liuweiccy/glide/action
  205. github.com/liuweiccy/glide/cfg
  206. github.com/liuweiccy/glide/msg
  207. github.com/liuweiccy/glide/repo
  208. github.com/liuweiccy/glide/util
  209. github.com/m110/glide/action
  210. github.com/m110/glide/cfg
  211. github.com/m110/glide/msg
  212. github.com/m110/glide/repo
  213. github.com/m110/glide/util
  214. github.com/martinlindhe/base16-builder-go
  215. github.com/marwan-at-work/dep
  216. github.com/masterminds/glide-report
  217. github.com/masterminds/glide-report/rules
  218. github.com/masterminds/glide/action
  219. github.com/masterminds/glide/cfg
  220. github.com/masterminds/glide/msg
  221. github.com/masterminds/glide/repo
  222. github.com/masterminds/glide/util
  223. github.com/mattfarina/glide-stripvcs
  224. github.com/mattfarina/go-test2
  225. github.com/mccjul/dep
  226. github.com/mem/dep
  227. github.com/mfycheng/glide/action
  228. github.com/mfycheng/glide/cfg
  229. github.com/mfycheng/glide/msg
  230. github.com/mfycheng/glide/repo
  231. github.com/mfycheng/glide/util
  232. github.com/mgutz/glide/action
  233. github.com/mgutz/glide/cfg
  234. github.com/mgutz/glide/repo
  235. github.com/mgutz/glide/util
  236. github.com/mh-cbon/glide/cfg
  237. github.com/mh-cbon/glide/repo
  238. github.com/mh-cbon/glide/util
  239. github.com/michelleN/helm-classic/config
  240. github.com/michelleN/helm/config
  241. github.com/miolini/glide/cfg
  242. github.com/miolini/glide/cmd
  243. github.com/miolini/glide/util
  244. github.com/mofax/dep
  245. github.com/mvdan/dep
  246. github.com/myENA/glide/action
  247. github.com/myENA/glide/cfg
  248. github.com/myENA/glide/msg
  249. github.com/myENA/glide/repo
  250. github.com/myENA/glide/util
  251. github.com/myles-mcdonnell/glide/action
  252. github.com/myles-mcdonnell/glide/cfg
  253. github.com/myles-mcdonnell/glide/msg
  254. github.com/myles-mcdonnell/glide/repo
  255. github.com/myles-mcdonnell/glide/util
  256. github.com/n0needt0/glide/cfg
  257. github.com/n0needt0/glide/repo
  258. github.com/n0needt0/glide/util
  259. github.com/nathanielc/dep
  260. github.com/nathanielc/gps
  261. github.com/nathany/dep
  262. github.com/ncsibra/dep/gps
  263. github.com/ngdinhtoan/glide/action
  264. github.com/ngdinhtoan/glide/cfg
  265. github.com/ngdinhtoan/glide/msg
  266. github.com/ngdinhtoan/glide/repo
  267. github.com/ngdinhtoan/glide/util
  268. github.com/nhooyr/dep/gps
  269. github.com/nkatsaros/dep
  270. github.com/nmiyake/dep
  271. github.com/nogoegst/dep/gps
  272. github.com/nourish/glide/cfg
  273. github.com/nourish/glide/repo
  274. github.com/nourish/glide/util
  275. github.com/npaton/dep/gps
  276. github.com/opencontrol/compliance-masonry-go/tools/vcs
  277. github.com/opencontrol/compliance-masonry/tools/vcs
  278. github.com/paulmach/glide/cmd
  279. github.com/paulmach/glide/util
  280. github.com/paulmach/glide/yaml
  281. github.com/polaris1119/glide/cfg
  282. github.com/polaris1119/glide/repo
  283. github.com/polaris1119/glide/util
  284. github.com/ramjac/dep
  285. github.com/rgarcia/dep/gps
  286. github.com/ryanfowler/glide/action
  287. github.com/ryanfowler/glide/cfg
  288. github.com/ryanfowler/glide/msg
  289. github.com/ryanfowler/glide/repo
  290. github.com/ryanfowler/glide/util
  291. github.com/s-urbaniak/glide/cfg
  292. github.com/s-urbaniak/glide/repo
  293. github.com/s-urbaniak/glide/util
  294. github.com/s111/dep/gps
  295. github.com/sdboyer/gps
  296. github.com/sdboyer/vsolver
  297. github.com/sebdah/dep
  298. github.com/sectioneight/dep
  299. github.com/sgotti/glide/cfg
  300. github.com/sgotti/glide/repo
  301. github.com/sgotti/glide/util
  302. github.com/sigma/dep/gps
  303. github.com/sillydong/dep/gps
  304. github.com/simonswine/dep
  305. github.com/skarlso/glide/action
  306. github.com/skarlso/glide/cfg
  307. github.com/skarlso/glide/repo
  308. github.com/skarlso/glide/util
  309. github.com/smothiki/helm/config
  310. github.com/speijnik/dep/gps
  311. github.com/spenczar/gps
  312. github.com/steve-winter/dep
  313. github.com/szuecs/glide-report
  314. github.com/szuecs/glide-report/rules
  315. github.com/takyoshi/dep
  316. github.com/theckman/dep/gps
  317. github.com/thockin/glide/cfg
  318. github.com/thockin/glide/repo
  319. github.com/thockin/glide/util
  320. github.com/tony/vcsync/vcsync
  321. github.com/travisjeffery/dep/gps
  322. github.com/tudyzhou/glide/cfg
  323. github.com/tudyzhou/glide/repo
  324. github.com/tudyzhou/glide/util
  325. github.com/urakozz/depupdates
  326. github.com/vburenin/glide/action
  327. github.com/vburenin/glide/cfg
  328. github.com/vburenin/glide/repo
  329. github.com/vburenin/glide/util
  330. github.com/vetinari/glide/action
  331. github.com/vetinari/glide/cfg
  332. github.com/vetinari/glide/msg
  333. github.com/vetinari/glide/repo
  334. github.com/vetinari/glide/util
  335. github.com/whitecypher/vgo
  336. github.com/xkeyideal/glide/action
  337. github.com/xkeyideal/glide/msg
  338. github.com/xkeyideal/glide/repo
  339. github.com/xkeyideal/glide/util
  340. github.com/yanyiwu/glide/cfg
  341. github.com/yanyiwu/glide/repo
  342. github.com/yanyiwu/glide/util
  343. github.com/yeka/glide/cfg
  344. github.com/yeka/glide/repo
  345. github.com/yeka/glide/util
  346. github.com/yuya008/gps
  347. github.com/zjx20/glide/action
  348. github.com/zjx20/glide/cfg
  349. github.com/zjx20/glide/msg
  350. github.com/zjx20/glide/repo
  351. github.com/zjx20/glide/util
  352. gopkg.in/Masterminds/glide.v0/action
  353. gopkg.in/Masterminds/glide.v0/cfg
  354. gopkg.in/Masterminds/glide.v0/cmd
  355. gopkg.in/Masterminds/glide.v0/msg
  356. gopkg.in/Masterminds/glide.v0/repo
  357. gopkg.in/Masterminds/glide.v0/util
  358. gopkg.in/Masterminds/glide.v0/yaml
  359. gopkg.in/masterminds/glide.v0/action
  360. gopkg.in/masterminds/glide.v0/cfg
  361. gopkg.in/masterminds/glide.v0/msg
  362. gopkg.in/masterminds/glide.v0/repo
  363. gopkg.in/masterminds/glide.v0/util