| Safe Haskell | None |
|---|
Biegunka.Source.Git
Contents
Description
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.gitto~/git/Idris-dev - Merge
origin/developintodevelop - Merge
stream/developintodevelop - Checkout to
develop - Link
~/git/Idris-dev/contribs/tool-support/vimto~/.vim/bundle/Idris-vim
Types
Do nothing except pulling origin/master into master
Lenses
Type synonyms
Convenient self-described types to remind yourself where is which argument