summaryrefslogtreecommitdiff
path: root/Command/Unused.hs
Commit message (Collapse)AuthorAge
...
* reorganize log modulesGravatar Joey Hess2011-10-15
| | | | no code changes
* renameGravatar Joey Hess2011-10-05
|
* renameGravatar Joey Hess2011-10-04
|
* factor out common importsGravatar Joey Hess2011-10-03
| | | | no code changes
* convert all git read/write functions to use ByteStringsGravatar Joey Hess2011-09-29
| | | | | | | | | | This yields a second or so speedup in unused, find, etc. Seems that even when the ByteString is immediately split and then converted to Strings, it's faster. I may try to push ByteStrings out into more of git-annex gradually, although I suspect most of the time-critical parts are already covered now, and many of the rest rely on libraries that only support Strings.
* golfingGravatar Joey Hess2011-09-28
|
* enable short-circuiting optimisatonsGravatar Joey Hess2011-09-28
|
* refine new unused codeGravatar Joey Hess2011-09-28
| | | | | | | | | Fixed the laziness space leak, so it runs in 60 mb or so again. Slightly faster due to using Data.Set.difference now, although this also makes it use slightly more memory. Also added display of the refs being checked, and made unused --from also check all refs for things in the remote.
* make unused check branches and tags tooGravatar Joey Hess2011-09-28
| | | | needs time and space optimisation
* refactorGravatar Joey Hess2011-09-23
|
* documentation/warning message update for future featureGravatar Joey Hess2011-09-23
|
* remove command type definitionsGravatar Joey Hess2011-09-15
| | | | | | | These were a mistake, they make the type signatures harder to read and less flexible. The CommandSeek, CommandStart, CommandPerform, and CommandCleanup types were a good idea, but composing them with the parameters expected is going too far.
* more newline fixesGravatar Joey Hess2011-09-09
| | | | | | | | | | Adds a missing newline when a longnote is followed by a endresult. Multiple longnotes in a row will now be separated by a blank line, which could be a bug or a feature depending on taste. Removed several places where newlines were explicitly displayed after longnotes.
* add explanation for why strictness is needed hereGravatar Joey Hess2011-08-31
|
* unused --remote: Reduced memory use to 1/4th what was used before.Gravatar Joey Hess2011-08-31
| | | | | | | Using a single strictness annotation, in just the right place. Tried several others, none of which helped and some of which potentially hurt. This is only the second time I've really had to deal with this in a year of using haskell, which is, I suppose not that bad.
* unify elipsis handlingGravatar Joey Hess2011-07-19
| | | | | And add a simple dots-based progress display, currently only used in v2 upgrade.
* finished hlint passGravatar Joey Hess2011-07-15
|
* renamed GitRepo to GitGravatar Joey Hess2011-06-30
| | | | It was always imported qualified as Git anyway
* generalized safeWriteFile to viaTmpGravatar Joey Hess2011-06-30
|
* factor out file list stuff from GitRepoGravatar Joey Hess2011-06-29
| | | | | GitRepo is getting too large an interface; these all fit nicely into a submodule.
* unused command updates for branchesGravatar Joey Hess2011-06-23
| | | | | Now that branches are more likely, unused needs to more explicitly warn that it does not look in them.
* rewrite loggedkeys to use git-annex branchGravatar Joey Hess2011-06-22
| | | | | | That sucking sound is a whole page of code vanishing to be replaced with return . catMaybes . map (logFileKey . takeFileName) =<< Branch.files What can I say, git is my database, and haskell my copilot.
* fixed logFileGravatar Joey Hess2011-06-22
|
* move LocationLog into Annex monad from IOGravatar Joey Hess2011-06-22
| | | | It will need to run in Annex so it can use Branch
* unused --from . checks local repo, for consistencyGravatar Joey Hess2011-05-28
|
* bugfix: fix unused list numberingGravatar Joey Hess2011-05-28
| | | | Introduced in 43f0a666f0f6cc152a2b778921831d6d7daedcaf
* tweakGravatar Joey Hess2011-05-28
|
* improve unused command's outputGravatar Joey Hess2011-05-28
| | | | | Display the name of the remote being checked, with "." for the current remote, echoing the way describe takes that to change its description.
* status: New subcommand to show info about an annex, including its size.Gravatar Joey Hess2011-05-16
|
* simplified a bunch of Maybe handlingGravatar Joey Hess2011-05-15
|
* refactor some boilerplateGravatar Joey Hess2011-05-15
|
* unused: Now also lists files fsck places in .git/annex/bad/Gravatar Joey Hess2011-04-29
|
* unused/dropunused: support --fromGravatar Joey Hess2011-04-02
|
* clarify wordingGravatar Joey Hess2011-03-22
| | | | temp files are always assumed to be unused, in either mode
* fast modeGravatar Joey Hess2011-03-22
| | | | | | | | | | Add --fast flag, that can enable less expensive, but also less thurough versions of some commands. * Add --fast flag, that can enable less expensive, but also less thurough versions of some commands. * fsck: In fast mode, avoid checking checksums. * unused: In fast mode, just show all existing temp files as unused, and avoid expensive scan for other unused content.
* avoid version check before running version and upgrade commandsGravatar Joey Hess2011-03-19
| | | | | There are two types of commands; those that access the repository and those that don't. Sorted.
* 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.
* 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.
* fix up commands that are trouble on bare reposGravatar Joey Hess2011-03-03
| | | | | Most will just abort. init does a basic init and gives a command to run elsewhere to finish it.
* 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
* 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.
* use forM_ in a few placesGravatar Joey Hess2011-01-31
|
* use mapM_Gravatar Joey Hess2011-01-31
|
* use Set instead of existence MapGravatar Joey Hess2011-01-30
| | | | | | more efficient and idiomatic I did try using Set.difference, it's still slower than my method.
* factor out pure codeGravatar Joey Hess2011-01-29
|
* 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.
* use safewritefileGravatar Joey Hess2011-01-28
|
* 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
* always write log, so it's empty if nothing is unusedGravatar Joey Hess2011-01-12
|