diff options
author | Joey Hess <joey@kitenet.net> | 2010-10-12 13:02:41 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-10-12 13:02:41 -0400 |
commit | ea5d7fe07a5c40349e66848fc9cd06a9f748b724 (patch) | |
tree | 5e3ebcaf507b8d29962a57f04bfcf5690222879c /GitRepo.hs | |
parent | 31b24348d25f5aec7ff521b7452fab6833a1d051 (diff) |
add uuid
Diffstat (limited to 'GitRepo.hs')
-rw-r--r-- | GitRepo.hs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/GitRepo.hs b/GitRepo.hs index c87bd355e..b166e3281 100644 --- a/GitRepo.hs +++ b/GitRepo.hs @@ -16,6 +16,7 @@ module GitRepo ( gitConfig, gitAdd, gitRm, + gitRun, gitAttributes ) where @@ -128,11 +129,11 @@ gitRelative repo file = drop (length absrepo) absfile {- Stages a changed/new file in git's index. -} gitAdd :: GitRepo -> FilePath -> IO () -gitAdd repo file = runGit repo ["add", file] +gitAdd repo file = gitRun repo ["add", file] {- Removes a file. -} gitRm :: GitRepo -> FilePath -> IO () -gitRm repo file = runGit repo ["rm", file] +gitRm repo file = gitRun repo ["rm", file] {- Constructs a git command line operating on the specified repo. -} gitCommandLine :: GitRepo -> [String] -> [String] @@ -141,8 +142,8 @@ gitCommandLine repo params = assertlocal repo $ ["--git-dir="++(gitDir repo), "--work-tree="++(top repo)] ++ params {- Runs git in the specified repo. -} -runGit :: GitRepo -> [String] -> IO () -runGit repo params = assertlocal repo $ do +gitRun :: GitRepo -> [String] -> IO () +gitRun repo params = assertlocal repo $ do r <- executeFile "git" True (gitCommandLine repo params) Nothing return () |