Skip to content

Commit 81f846d

Browse files
committed
some unimportant changes
1 parent 9f34438 commit 81f846d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

gitallup.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cabal-version: 1.12
44
--
55
-- see: https://github.com/sol/hpack
66
--
7-
-- hash: c95163430c6a4f4a3ed75f94e046a3763fbcd08112973869de241421231659e5
7+
-- hash: 031a11b82ce0d838b8a500685da2433c749f980410d2e3ac63b5e6ea8bcacbf3
88

99
name: gitallup
1010
version: 0.2.0.0
@@ -49,7 +49,7 @@ library
4949
, split
5050
default-language: Haskell2010
5151

52-
executable gitallup
52+
executable gitallup-exe
5353
main-is: Main.hs
5454
other-modules:
5555
Paths_gitallup

package.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ library:
4343
source-dirs: src
4444

4545
executables:
46-
gitallup:
46+
gitallup-exe:
4747
main: Main.hs
4848
source-dirs: app
4949
dependencies:

src/Git.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{-# LANGUAGE NoImplicitPrelude #-}
22
{-# LANGUAGE OverloadedStrings #-}
3+
34
module Git
45
( listBranches
56
, currentBranch
@@ -61,7 +62,7 @@ switchBranch
6162
:: FilePath -> B.ByteString -> RIO App (Either GitOpError GitOpSuccess)
6263
switchBranch repo branch =
6364
_extractGitOpErrorOrResult
64-
<$> proc "git" ["-C", repo, "checkout", C8.unpack branch] readProcess
65+
<$> proc "git" ["-C", repo, "switch", C8.unpack branch] readProcess
6566

6667
--
6768
--

0 commit comments

Comments
 (0)