git-annex/Command
Joey Hess 234842a347
v7
Install new git hooks in this version.

This does beg the question of what to do if git later gets eg a
post-smudge hook, that could run git-annex smudge --update. I think the
thing to do in that case would be to make git-annex smudge --update
install the new hooks. That way, as the user uses git-annex, the hook
would be created pretty quickly and without needing any extra syscalls
except for when git-annex smudge --update is called.

I considered doing something like that for installation of the
post-checkout and post-merge hooks, which would have avoided the need
for v7. But the only place it was cheap to do it would be in git-annex smudge
which could cheaply notice that smudge.log didn't exist yet and so know
the hooks needed to be installed. But since smudge used to populate pointer
files, it would be quite surprising if a single git checkout/merge failed
to update the work tree, and so that idea didn't work out.

The other reason for v7 is psychological -- users don't need to worry
about whether they might be running an old version of git-annex that
doesn't support their v7 repository very well. And bug reports about
"v6" have gotten a bit of a bad association in my head since they often
hit one of the known limitations and didn't realize it was experimental.

newtyped RepoVersion Int to avoid needing 2 comparisons in
versionSupportsUnlockedPointers etc. Also it's just nicer.

This commit was sponsored by John Pellman on Patreon.
2018-10-25 18:24:23 -04:00
..
Add.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
AddUnused.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
AddUrl.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00
Adjust.hs adjust --hide-missing 2018-10-18 15:32:42 -04:00
Assistant.hs fold Build/SysConfig.hs into BuildInfo via include 2017-12-14 12:46:57 -04:00
Benchmark.hs change keys database to use IKey type with more efficient serialization 2016-01-12 14:01:50 -04:00
CalcKey.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
CheckPresentKey.hs added -z 2018-09-20 16:11:47 -04:00
Commit.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Config.hs more lambda-case conversion 2017-12-05 15:00:50 -04:00
ConfigList.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
ContentLocation.hs Avoid backtraces on expected failures when built with ghc 8; only use backtraces for unexpected errors. 2016-11-15 21:29:54 -04:00
Copy.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Dead.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Describe.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
DiffDriver.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Direct.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Drop.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
DropKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
DropUnused.hs add gitAnnexTmpWorkDir and withTmpWorkDir 2017-11-29 13:53:39 -04:00
EnableRemote.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
EnableTor.hs instrument P2P --debug with connection and thread info 2018-10-22 15:52:11 -04:00
ExamineKey.hs add --json-error-messages (not yet implemented) 2018-02-19 14:32:15 -04:00
Expire.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Export.hs export: Fix false positive in export conflict detection 2018-10-09 15:54:12 -04:00
Find.hs prevent find running in bare repo 2018-10-16 10:44:09 -04:00
FindRef.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Fix.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Forget.hs showStart variant for when there's no worktree file 2017-11-28 15:14:16 -04:00
FromKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Fsck.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
FuzzTest.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
GCryptSetup.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Get.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Group.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
GroupWanted.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Help.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Import.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
ImportFeed.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
InAnnex.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Indirect.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Info.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Init.hs v7 2018-10-25 18:24:23 -04:00
InitRemote.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Inprogress.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
List.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Lock.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
LockContent.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Log.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
LookupKey.hs lookupkey absolute path support 2017-12-08 15:35:02 -04:00
Map.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
MatchExpression.hs matchexpression: Added --largefiles option to parse an annex.largefiles expression. 2016-02-03 16:58:36 -04:00
Merge.hs refactor getCurrentBranch 2018-10-19 17:29:18 -04:00
MetaData.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Migrate.hs improve error message 2018-10-16 15:52:40 -04:00
Mirror.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Move.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Multicast.hs enforce retrievalSecurityPolicy 2018-06-21 13:37:01 -04:00
NotifyChanges.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
NumCopies.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
P2P.hs clean P2P protocol shutdown on EOF try 2 2018-09-25 16:49:59 -04:00
P2PStdIO.hs clean P2P protocol shutdown on EOF try 2 2018-09-25 16:49:59 -04:00
PostReceive.hs refactor getCurrentBranch 2018-10-19 17:29:18 -04:00
PreCommit.hs git post-checkout and post-merge hooks 2018-10-25 15:59:51 -04:00
Proxy.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
ReadPresentKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
RecvKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
RegisterUrl.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00
Reinit.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Reinject.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
ReKey.hs fix rekey/migrate bookkeeping in v6 2018-10-16 17:18:21 -04:00
RemoteDaemon.hs remotedaemon: serve tor hidden service 2016-11-20 15:48:12 -04:00
Repair.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Required.hs started converting to use optparse-applicative 2015-07-08 13:36:25 -04:00
ResolveMerge.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
RmUrl.hs clean up url removal presence update 2018-10-04 17:35:49 -04:00
Schedule.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Semitrust.hs convert all commands to work with optparse-applicative 2015-07-08 15:08:02 -04:00
SendKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
SetKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
SetPresentKey.hs added -z 2018-09-20 16:11:47 -04:00
Smudge.hs v7 2018-10-25 18:24:23 -04:00
Status.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Sync.hs make sync update adjusted branch to hide/unhide 2018-10-20 14:22:28 -04:00
Test.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
TestRemote.hs enforce retrievalSecurityPolicy 2018-06-21 13:37:01 -04:00
TransferInfo.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
TransferKey.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
TransferKeys.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Trust.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Unannex.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Undo.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Ungroup.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Uninit.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Unlock.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Untrust.hs convert all commands to work with optparse-applicative 2015-07-08 15:08:02 -04:00
Unused.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Upgrade.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
VAdd.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
VCycle.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Version.hs v7 2018-10-25 18:24:23 -04:00
VFilter.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Vicfg.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
View.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
VPop.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Wanted.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00
Watch.hs remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
WebApp.hs removed the old Android app 2018-10-13 01:41:11 -04:00
Whereis.hs move commandAction out of CmdLine.Seek 2018-10-01 14:12:06 -04:00