summaryrefslogtreecommitdiff
path: root/Content.hs
Commit message (Collapse)AuthorAge
* Avoid using absolute paths when staging location log, as that can confuse ↵Gravatar Joey Hess2011-04-25
| | | | | | | | | | | git when a remote's path contains a symlink. Closes: #621386 This was a real PITA to fix, since location logs can be staged in both the current repo, as well as in local remote's repos, in which case the cwd will not be in the repo. And git add needs different params in both cases, when absolute paths are not used. In passing, git annex fsck now stages location log fixes.
* generalized relPathDirTo functionsGravatar Joey Hess2011-04-25
|
* Periodically flush git command queue, to avoid boating memory usage too much.Gravatar Joey Hess2011-04-07
| | | | | | | Since the queue is flushed in between subcommand actions being run, there should be no issues with actions that expect to queue up some stuff and have it run after they do other stuff. So I didn't have to audit for such assumptions.
* add loggedKeysGravatar Joey Hess2011-04-02
|
* some reorg and further remote generalizationGravatar Joey Hess2011-03-27
|
* annex.diskreserve can be given in arbitrary units (ie "0.5 gigabytes")Gravatar Joey Hess2011-03-26
|
* allow force overriding the disk space checkGravatar Joey Hess2011-03-23
|
* improve free space needed displayGravatar Joey Hess2011-03-23
|
* add units to disk size check messageGravatar Joey Hess2011-03-23
|
* diskreserve settingGravatar Joey Hess2011-03-22
| | | | | Add annex.diskreserve config setting, to control how much free space to reserve for other purposes and avoid using (defaults to 1 mb).
* free space checkingGravatar Joey Hess2011-03-22
| | | | | | | | Free space checking is now done, for transfers of data for keys that have free space metadata. (Notably, not for SHA* keys generated with git-annex 0.24 or earlier.) The code is believed to work on Linux, FreeBSD, and OSX; check compile-time messages to see if it is not enabled for your OS.
* remove debuggingGravatar Joey Hess2011-03-16
|
* fix getKeyspresent to work with hashed dirsGravatar Joey Hess2011-03-16
|
* first pass at using new keysGravatar Joey Hess2011-03-15
| | | | | | | It compiles. It sorta works. Several subcommands are FIXME marked and broken, because things that used to accept separate --backend and --key params need to be changed to accept just a --key that encodes all the key info, now that there is metadata in keys.
* Add Suggests on graphviz. Closes: #618039Gravatar Joey Hess2011-03-13
|
* Rethink filename encoding handling for display. Since filename encoding may ↵0.23Gravatar Joey Hess2011-03-12
| | | | or may not match locale settings, any attempt to decode filenames will fail for some files. So instead, do all output in binary mode.
* Bugfix: When fsck detected and moved away corrupt file content, it did not ↵Gravatar Joey Hess2011-03-03
| | | | update the location log.
* avoid logging to location log when in a bare repoGravatar Joey Hess2011-03-03
| | | | | | | | | | | | | | This assumes that changes to content in bare repos are made from some non-bare repo, and that the location log is updated on that side. That's true for move --from and move --to. It's *not* true for dropkey and setkey and recvkey. But those are plumbing level commands, so I guess it's ok to assume that someone running those in a bare repo knows what they're doing. And git-annex-shell is used to run those, and if the bare repo is non-local, it needs to be able to use them even though they cannot update the location log. So this seems unavoidable.
* some initial support for local bare reposGravatar Joey Hess2011-03-03
| | | | | | | | | | | This relies on git-annex's behavior of reading the config of local repos. That allows repoIsLocalBare to examine the git config for core.bare. Hopefully, gitAnnexLocation, gitAnnexDir, and gitAnnexObjectDir are only used on local repos. But, I have not audited fully, since they're probably not (see for example copyToRemote). And so, the functions fall back to their old non-bare-aware behavior for non-local repos.
* use ShellParam typeGravatar Joey Hess2011-02-28
| | | | | So, I have a type checked safe handling of filenames starting with dashes, throughout the code.
* update unicode FilePath handlingGravatar Joey Hess2011-02-11
| | | | | | | | Based on http://hackage.haskell.org/trac/ghc/ticket/3307 , whether FilePath contains decoded unicode varies by OS. So, add a configure check for it. Also, renamed showFile to filePathToString
* Fixed missing import of Messages moduleGravatar Michael Kenney2011-02-10
|
* Fix display of unicode filenames.Gravatar Joey Hess2011-02-10
| | | | | | | | | Internally, the filenames are stored as un-decoded unicode. I tried decoding them, but then haskell tries to access the wrong files. Hmm. So, I've unhappily chosen option "B", which is to decode filenames before they are displayed.
* Improved temp file handlingGravatar Joey Hess2011-01-28
| | | | | | | * Improved temp file handling. Transfers of content can now be resumed from temp files later; the resume does not have to be the immediate next git-annex run. * unused: Include partially transferred content in the list.
* better directory handlingGravatar Joey Hess2011-01-27
| | | | | | | | | | Rename Locations functions for better consitency, and make their values more consistent too. Used </> rather than manually building paths. There are still more places that manually do so, but are tricky, due to the behavior of </> when the second FilePath is absolute. So I only changed places where it obviously was relative.
* got rid of Core moduleGravatar Joey Hess2011-01-16
Most of it was to do with managing annexed Content, so put there