diff options
author | Joey Hess <joey@kitenet.net> | 2014-03-21 14:39:50 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-03-21 14:41:05 -0400 |
commit | abd426c979ac9438eb625e0e9866586b6ffb9d97 (patch) | |
tree | 68b7b618c573b9c5ca2f2422a7786271bc52242b /Locations.hs | |
parent | 886412e8557eb40d151e5f9e5c6559289940329b (diff) |
unannex, uninit: Avoid committing after every file is unannexed, for massive speedup.
pre-commit hook lock added, so unannex can prevent the hook from running
in a confusing state.
This commit was sponsored by Fredrik Hammar
Diffstat (limited to 'Locations.hs')
-rw-r--r-- | Locations.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Locations.hs b/Locations.hs index 74cace156..5bff63eaf 100644 --- a/Locations.hs +++ b/Locations.hs @@ -41,6 +41,7 @@ module Locations ( gitAnnexMergeDir, gitAnnexJournalDir, gitAnnexJournalLock, + gitAnnexPreCommitLock, gitAnnexIndex, gitAnnexIndexStatus, gitAnnexViewIndex, @@ -257,6 +258,10 @@ gitAnnexJournalDir r = addTrailingPathSeparator $ gitAnnexDir r </> "journal" gitAnnexJournalLock :: Git.Repo -> FilePath gitAnnexJournalLock r = gitAnnexDir r </> "journal.lck" +{- Lock file for the pre-commit hook. -} +gitAnnexPreCommitLock :: Git.Repo -> FilePath +gitAnnexPreCommitLock r = gitAnnexDir r </> "precommit.lck" + {- .git/annex/index is used to stage changes to the git-annex branch -} gitAnnexIndex :: Git.Repo -> FilePath gitAnnexIndex r = gitAnnexDir r </> "index" |