git-annex/Annex
Joey Hess cd865c3b8f Switch to using relative paths to the git repository.
This allows the git repository to be moved while git-annex is running in
it, with fewer problems.

On Windows, this avoids some of the problems with the absurdly small
MAX_PATH of 260 bytes. In particular, git-annex repositories should
work in deeper/longer directory structures than before. See
http://git-annex.branchable.com/bugs/__34__git-annex:_direct:_1_failed__34___on_Windows/

There are several possible ways this change could break git-annex:

1. If it changes its working directory while it's running, that would
   be Bad News. Good news everyone! git-annex never does so. It would also
   break thread safety, so all such things were stomped out long ago.

2. parentDir "." -> "" which is not a valid path. I had to fix one
   instace of this, and I should probably wipe all calls to parentDir out
   of the git-annex code base; it was never a good idea.

3. Things like relPathDirToFile require absolute input paths,
   and code assumes that the git repo path is absolute and passes it to it
   as-is. In the case of relPathDirToFile, I converted it to not make
   this assumption.

Currently, the test suite has 16 failures.
2015-01-06 16:19:41 -04:00
..
Branch vicfg: Deleting configurations now resets to the default, where before it has no effect. 2014-10-14 14:15:07 -04:00
Content Switch to using relative paths to the git repository. 2015-01-06 16:19:41 -04:00
Direct Switch to using relative paths to the git repository. 2015-01-06 16:19:41 -04:00
MetaData toplevel lastchanged field 2014-03-19 19:10:55 -04:00
View Windows: Fix handling of views of filenames containing '%' 2014-12-30 17:48:04 -04:00
AutoMerge.hs resolvemerge: finish up by committing 2014-07-11 16:59:49 -04:00
Branch.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
BranchState.hs remove git-annex branch read cache 2012-10-19 14:25:15 -04:00
CatFile.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
CheckAttr.hs finished where indentation changes 2012-12-13 00:24:19 -04:00
CheckIgnore.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Content.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Direct.hs proxy: for all your direct mode repository munging needs 2014-11-12 15:51:46 -04:00
Drop.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
Environment.hs Windows: Fix crash when user.name is not set in git config. 2014-10-31 16:14:12 -04:00
FileMatcher.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Hook.hs fix handling of nonexistant hook 2014-03-03 13:59:36 -04:00
Index.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
Init.hs fixed all remaining build warnings on Windows 2014-12-29 17:30:20 -04:00
Journal.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
Link.hs diffdriver: New git-annex command, to make git external diff drivers work with annexed files. 2014-11-24 16:14:06 -04:00
LockFile.hs reorganize and refactor lock code 2014-08-20 16:45:58 -04:00
MakeRepo.hs support commit.gpgsign 2014-07-04 11:53:51 -04:00
MetaData.hs really add non-date metadata too 2014-07-03 14:35:20 -04:00
Notification.hs Notification: Add action/status-dependent icon and urgency 2014-04-05 20:45:11 +03:00
Path.hs move programPath out of Config.Files to Annex.Path 2013-11-24 16:03:03 -04:00
Perms.hs unify exception handling into Utility.Exception 2014-08-07 22:03:29 -04:00
Queue.hs type based git config handling for remotes 2013-01-01 13:58:14 -04:00
Quvi.hs Probe for quvi version at run time. 2014-02-28 14:54:02 -04:00
ReplaceFile.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Ssh.hs fixed all remaining build warnings on Windows 2014-12-29 17:30:20 -04:00
TaggedPush.hs indent with tabs not spaces 2014-10-09 15:09:26 -04:00
Transfer.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Url.hs memoize construction of the Request -> Request function to apply the UrlOptions 2014-08-15 17:47:21 -04:00
UUID.hs move dummy uuids to Annex.UUID 2014-12-17 13:57:52 -04:00
VariantFile.hs sync: Fix bug in direct mode that caused a file not checked into git to be deleted when merging with a remote that added a file by the same name. (Thanks, jkt) 2014-03-03 14:57:16 -04:00
Version.hs Auto-upgrade v3 indirect repos to v5 with no changes. This also fixes a problem when a direct mode repo was somehow set to v3 rather than v4, and so the automatic direct mode upgrade to v5 was not done. 2013-12-29 13:06:23 -04:00
View.hs fix some mixed space+tab indentation 2014-10-09 15:09:11 -04:00
Wanted.hs fix transfers of key with no associated file 2014-01-23 16:44:02 -04:00