Safe Haskell | None |
---|
Support for git repositories as Sources
- git' :: URI -> FilePath -> Git -> Script Sources ()
- git :: URI -> FilePath -> Script Actions () -> Script Sources ()
- git_ :: URI -> FilePath -> Script Sources ()
- data Git = Git {}
- defaultGit :: Git
- actions :: Sourceable s => Lens' s (Script Actions ())
- remotes :: Lens' Git [Remote]
- branch :: Lens' Git Branch
- type Branch = String
- type Remote = String
- type URI = String
Source layer
git' :: URI -> FilePath -> Git -> Script Sources ()Source
Clone repository from the url to the specified path using provided Git
settings. Sample:
git' "git@github.com:edwinb/Idris-dev" "git/Idris-dev" $ def & remotes .~ ["origin", "stream"] & branch .~ "develop" & actions .~ do link "contribs/tool-support/vim" ".vim/bundle/idris-vim"
- Clone repository from
https://github.com/edwinb/Idris-dev.git
to~/git/Idris-dev
- Merge
origin/develop
intodevelop
- Merge
stream/develop
intodevelop
- Checkout to
develop
- Link
~/git/Idris-dev/contribs/tool-support/vim
to~/.vim/bundle/Idris-vim
Types
Do nothing except pulling origin/master
into master
Lenses
actions :: Sourceable s => Lens' s (Script Actions ())Source
Actions to run after source update
Type synonyms
Convenient self-described types to remind yourself where is which argument