Skip to content
Snippets Groups Projects
  1. Jan 14, 2019
    • Joey Hess's avatar
      rename key2file and file2key · d3ab5e62
      Joey Hess authored
      What these generate is not really suitable to be used as a filename,
      which is why keyFile and fileKey further escape it. These are just
      serializing Keys.
      
      Also removed a quickcheck test that was very unlikely to test anything
      useful, since it relied on random chance creating something that looks
      like a serialized key. The other test is sufficient for testing what
      that was intended to test anyway.
      d3ab5e62
  2. Sep 05, 2018
    • Joey Hess's avatar
      dropdead per-remote metadata · 0a7c5a99
      Joey Hess authored
      Had to refactor pure code into separate modules so it is accessible
      inside Annex.Branch.Transitions.
      
      This commit was sponsored by Peter on Patreon.
      0a7c5a99
  3. Aug 31, 2018
    • Joey Hess's avatar
      per-remote metadata storage · 5c99f624
      Joey Hess authored
      Actually very straightforward reuse of the metadata log file code.
      Although I had to add a todo item as git-annex forget won't clean up
      dead remote's metadata yet.
      
      This would be worth adding to the external special remote interface
      sometime. Have not opened a todo though, guess I'll wait until something
      needs it.
      
      This commit was supported by the NSF-funded DataLad project.
      5c99f624
  4. Aug 31, 2017
  5. Mar 30, 2017
  6. Jan 30, 2017
    • Joey Hess's avatar
      config: New command for storing configuration in the git-annex branch. · 339464e8
      Joey Hess authored
      Any config names can be set using this; git-annex commands will only look
      at specific ones that make sense and are worth the overhead of querying the
      branch.
      
      This might also be useful for storing whatever other config-type stuff the
      user might want to shove into the git-annex branch.
      
      This commit was sponsored by Jochen Bartl on Patreon.
      339464e8
  7. Jan 20, 2016
  8. Apr 05, 2015
  9. Jan 28, 2015
  10. Jan 27, 2015
  11. Jan 21, 2015
  12. Oct 09, 2014
    • Joey Hess's avatar
      hlint · b61c6bc2
      Joey Hess authored
      b61c6bc2
    • Joey Hess's avatar
      indent with tabs not spaces · 9fd95d90
      Joey Hess authored
      Found these with:
      git grep "^  " $(find -type  f -name \*.hs) |grep -v ':  where'
      
      Unfortunately there is some inline hamlet that cannot use tabs for
      indentation.
      
      Also, Assistant/WebApp/Bootstrap3.hs is a copy of a module and so I'm
      leaving it as-is.
      9fd95d90
    • Joey Hess's avatar
      fix some mixed space+tab indentation · 7b50b3c0
      Joey Hess authored
      This fixes all instances of " \t" in the code base. Most common case
      seems to be after a "where" line; probably vim copied the two space layout
      of that line.
      
      Done as a background task while listening to episode 2 of the Type Theory
      podcast.
      7b50b3c0
  13. Jul 24, 2014
    • Joey Hess's avatar
      implement chunk logs · e2c44bf6
      Joey Hess authored
      Slightly tricky as they are not normal UUIDBased logs, but are instead maps
      from (uuid, chunksize) to chunkcount.
      
      This commit was sponsored by Frank Thomas.
      e2c44bf6
  14. Jul 17, 2014
    • Joey Hess's avatar
      · e213ef31
      Joey Hess authored
      git-annex (5.20140717) unstable; urgency=high
      
        * Fix minor FD leak in journal code. Closes: #754608
        * direct: Fix handling of case where a work tree subdirectory cannot
          be written to due to permissions.
        * migrate: Avoid re-checksumming when migrating from hashE to hash backend.
        * uninit: Avoid failing final removal in some direct mode repositories
          due to file modes.
        * S3: Deal with AWS ACL configurations that do not allow creating or
          checking the location of a bucket, but only reading and writing content to
          it.
        * resolvemerge: New plumbing command that runs the automatic merge conflict
          resolver.
        * Deal with change in git 2.0 that made indirect mode merge conflict
          resolution leave behind old files.
        * sync: Fix git sync with local git remotes even when they don't have an
          annex.uuid set. (The assistant already did so.)
        * Set gcrypt-publish-participants when setting up a gcrypt repository,
          to avoid unncessary passphrase prompts.
          This is a security/usability tradeoff. To avoid exposing the gpg key
          ids who can decrypt the repository, users can unset
          gcrypt-publish-participants.
        * Install nautilus hooks even when ~/.local/share/nautilus/ does not yet
          exist, since it is not automatically created for Gnome 3 users.
        * Windows: Move .vbs files out of git\bin, to avoid that being in the
          PATH, which caused some weird breakage. (Thanks, divB)
        * Windows: Fix locking issue that prevented the webapp starting
          (since 5.20140707).
      
      # imported from the archive
      e213ef31
  15. Apr 11, 2014
    • Joey Hess's avatar
      · 2a82adc4
      Joey Hess authored
      git-annex (5.20140412) unstable; urgency=high
      
        * Last release didn't quite fix the high cpu issue in all cases, this should.
      
      # imported from the archive
      2a82adc4
  16. Apr 02, 2014
    • Joey Hess's avatar
      · b6d46c21
      Joey Hess authored
      git-annex (5.20140402) unstable; urgency=medium
      
        * unannex, uninit: Avoid committing after every file is unannexed,
          for massive speedup.
        * --notify-finish switch will cause desktop notifications after each
          file upload/download/drop completes
          (using the dbus Desktop Notifications Specification)
        * --notify-start switch will show desktop notifications when each
          file upload/download starts.
        * webapp: Automatically install Nautilus integration scripts
          to get and drop files.
        * tahoe: Pass -d parameter before subcommand; putting it after
          the subcommand no longer works with tahoe-lafs version 1.10.
          (Thanks, Alberto Berti)
        * forget --drop-dead: Avoid removing the dead remote from the trust.log,
          so that if git remotes for it still exist anywhere, git annex info
          will still know it's dead and not show it.
        * git-annex-shell: Make configlist automatically initialize
          a remote git repository, as long as a git-annex branch has
          been pushed to it, to simplify setup of remote git repositories,
          including via gitolite.
        * add --include-dotfiles: New option, perhaps useful for backups.
        * Version 5.20140227 broke creation of glacier repositories,
          not including the datacenter and vault in their configuration.
          This bug is fixed, but glacier repositories set up with the broken
          version of git-annex need to have the datacenter and vault set
          in order to be usable. This can be done using git annex enableremote
          to add the missing settings. For details, see
          http://git-annex.branchable.com/bugs/problems_with_glacier/
        * Added required content configuration.
        * assistant: Improve ssh authorized keys line generated in local pairing
          or for a remote ssh server to set environment variables in an
          alternative way that works with the non-POSIX fish shell, as well
          as POSIX shells.
      
      # imported from the archive
      b6d46c21
  17. Mar 29, 2014
  18. Mar 26, 2014
    • Joey Hess's avatar
      · f4a98d2d
      Joey Hess authored
      git-annex (5.20140320~bpo70+1) wheezy-backports; urgency=medium
      
        * Updating backport to newest release.
        * Note that this backport does not feature constant time webapp auth token
          comparisons. It's not recommended to use the webapp on multiuser systems,
          since another use may be able to use a timing attack to guess its auth
          token. If you need that, it should not be hard to backport
          haskell-securemem.
      
      # imported from the archive
      f4a98d2d
  19. Mar 15, 2014
  20. Feb 20, 2014
    • Joey Hess's avatar
      · 9c426c0d
      Joey Hess authored
      git-annex (5.20140210~bpo70+2) wheezy-backports; urgency=medium
      
        * Updating backport to newest release.
        * Remaining differences in this backport:
          - No webdav special remote support.
          - Test suite is not built into git-annex as it now uses haskell-tasty,
            which is not yet backported.
          - No skein hash support.
      
      # imported from the archive
      9c426c0d
  21. Feb 13, 2014
    • Joey Hess's avatar
      add metadata command to get/set metadata · 9f7e7613
      Joey Hess authored
      Adds metadata log, and command.
      
      Note that unsetting field values seems to currently be broken.
      And in general this has had all of 2 minutes worth of testing.
      
      This commit was sponsored by Julien Lefrique.
      9f7e7613
  22. Feb 11, 2014
  23. Jan 20, 2014
    • Joey Hess's avatar
      global numcopies setting · d66535f0
      Joey Hess authored
      * numcopies: New command, sets global numcopies value that is seen by all
        clones of a repository.
      * The annex.numcopies git config setting is deprecated. Once the numcopies
        command is used to set the global number of copies, any annex.numcopies
        git configs will be ignored.
      * assistant: Make the prefs page set the global numcopies.
      
      This global numcopies setting is needed to let preferred content
      expressions operate on numcopies.
      
      It's also convenient, because typically if you want git-annex to preserve N
      copies of files in a repo, you want it to do that no matter which repo it's
      running in. Making it global avoids needing to warn the user about gotchas
      involving inconsistent annex.numcopies settings.
      (See changes to doc/numcopies.mdwn.)
      
      Added a new variety of git-annex branch log file, that holds only 1 value.
      Will probably be useful for other stuff later.
      
      This commit was sponsored by Nicolas Pouillard.
      d66535f0
  24. Jan 03, 2014
    • Joey Hess's avatar
      add remote state logs · 3e68c1c2
      Joey Hess authored
      This allows a remote to store a piece of arbitrary state associated with a
      key. This is needed to support Tahoe, where the file-cap is calculated from
      the data stored in it, and used to retrieve a key later. Glacier also would
      be much improved by using this.
      
      GETSTATE and SETSTATE are added to the external special remote protocol.
      
      Note that the state is left as-is even when a key is removed from a remote.
      It's up to the remote to decide when it wants to clear the state.
      
      The remote state log, $KEY.log.rmt, is a UUID-based log. However,
      rather than using the old UUID-based log format, I created a new variant
      of that format. The new varient is more space efficient (since it lacks the
      "timestamp=" hack, and easier to parse (and the parser doesn't mess with
      whitespace in the value), and avoids compatability cruft in the old one.
      
      This seemed worth cleaning up for these new files, since there could be a
      lot of them, while before UUID-based logs were only used for a few log
      files at the top of the git-annex branch. The transition code has also
      been updated to handle these new UUID-based logs.
      
      This commit was sponsored by Daniel Hofer.
      3e68c1c2
  25. Nov 27, 2013
    • Joey Hess's avatar
      · 7189dfd7
      Joey Hess authored
      git-annex (5.20131127) unstable; urgency=low
      
        * webapp: Detect when upgrades are available, and upgrade if the user
          desires.
          (Only when git-annex is installed using the prebuilt binaries
          from git-annex upstream, not from eg Debian.)
        * assistant: Detect when the git-annex binary is modified or replaced,
          and either prompt the user to restart the program, or automatically
          restart it.
        * annex.autoupgrade configures both the above upgrade behaviors.
        * Added support for quvi 0.9. Slightly suboptimal due to limitations in its
          interface compared with the old version.
        * Bug fix: annex.version did not get set on automatic upgrade to v5 direct
          mode repo, so the upgrade was performed repeatedly, slowing commands down.
        * webapp: Fix bug that broke switching between local repositories
          that use the new guarded direct mode.
        * Android: Fix stripping of the git-annex binary.
        * Android: Make terminal app show git-annex version number.
        * Android: Re-enable XMPP support.
        * reinject: Allow to be used in direct mode.
        * Futher improvements to git repo repair. Has now been tested in tens
          of thousands of intentionally damaged repos, and successfully
          repaired them all.
        * Allow use of --unused in bare repository.
      
      # imported from the archive
      7189dfd7
  26. Nov 06, 2013
    • Joey Hess's avatar
      · d2633388
      Joey Hess authored
      git-annex (4.20131106~bpo70+1) wheezy-backports; urgency=low
      
        * Backport is now built against git 1.8.4, also now available in backports.
        * Improve local pairing behavior when two computers both try to start
          the pairing process separately.
        * sync: Work even when the local git repository is new and empty,
          with no master branch.
        * gcrypt, bup: Fix bug that prevented using these special remotes
          with encryption=pubkey.
        * Fix enabling of gcrypt repository accessed over ssh;
          git-annex-shell gcryptsetup had a bug that caused it to fail
          with permission denied.
        * Fix zombie process that occurred when switching between repository
          views in the webapp.
        * map: Work when there are gcrypt remotes.
        * Fix build w/o webapp.
        * Fix exception handling bug that could cause .git/annex/index to be used
          for git commits outside the git-annex branch. Known to affect git-annex
          when used with the git shipped with Ubuntu 13.10.
      
      # imported from the archive
      d2633388
  27. Oct 07, 2013
  28. Aug 29, 2013