Commit graph

145 commits

Author SHA1 Message Date
Joey Hess
f21889a9a3
update walkthrough 2014-02-20 14:48:09 -04:00
Joey Hess
7b9e1fbc9c
tweak wording 2014-02-10 11:59:23 -04:00
Joey Hess
de8126ab72 add a walkthrough section discussing git-annex's skipping of files on noop 2014-02-02 17:01:41 -04:00
Joey Hess
ba6cba97d2 update docs for sync --content 2014-02-02 16:21:42 -04:00
Joey Hess
d66535f065 global numcopies setting
* 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.
2014-01-20 16:47:56 -04:00
Joey Hess
c1cdfabcbb adjust for earlier change that made sync be introduced earlier 2013-09-07 19:18:16 -04:00
Joey Hess
4e6cf16117 adjust walkthrough to also work on Windows
(not fully tested on windows)
2013-09-03 13:59:08 -04:00
Joey Hess
822918089e dropunused behavior change: Now refuses to drop the last copy of a file, unless you use the --force.
This was the last place in git-annex that could remove data referred to by
the git history, without being forced.

Like drop, dropunused checks remotes, and honors the global annex.numcopies
setting. (However, .gitattributes settings cannot apply to unused files.)
2013-07-25 19:50:44 -04:00
http://brohaveyouseenmysocks.wordpress.com/
b7f96cbd96 typo 2013-07-21 04:44:19 +00:00
Joey Hess
43ca8eb066 expand 2013-07-09 14:28:45 -04:00
Joey Hess
fc9d68d608 wording 2013-07-08 16:27:00 -04:00
Joey Hess
655ca5e51e add a new item to walkthrough, as people get confused about whether tags and branches are supported (they are) 2013-07-08 16:17:28 -04:00
Joey Hess
0caee4ae28 add a note 2013-07-08 16:17:24 -04:00
Joey Hess
04d07f2c1f --unused: New switch that makes git-annex operate on all data found by the last run of git annex unused. Supported by fsck, get, move, copy. 2013-07-03 15:26:59 -04:00
http://yarikoptic.myopenid.com/
6eb93581fd Added a comment: feature request: unlock --drop 2013-05-30 20:26:52 +00:00
Joey Hess
2205b6c944 link direct mode 2013-04-18 15:59:57 -04:00
http://joeyh.name/
bac2bd36c6 Added a comment 2013-03-12 11:15:12 +00:00
https://www.google.com/accounts/o8/id?id=AItOawniXLhO9mLn-7EDfawdENZ2fQwlGy5w_oc
2669c3ed97 Added a comment: unrecognized command 2013-03-12 06:32:57 +00:00
https://www.google.com/accounts/o8/id?id=AItOawla7u6eLKNYZ09Z7xwBffqLaXquMQC07fU
721796a3e2 Added a comment: Hint for Debian/Ubuntu 2012-11-07 13:10:15 +00:00
David Bremner
0ba27bac7e fix example commands in comment 2012-10-28 20:33:00 -03:00
bremner
c2a2d226af Added a comment: finding data that isn't unused, but should be. 2012-10-17 20:32:12 +00:00
Joey Hess
71fd18a97f wired preferred content up to get, copy, and drop --auto 2012-10-08 13:16:53 -04:00
http://lj.rossia.org/users/imz/
071aad8925 Added a comment: sorta why git-annex exists in the first place -- not only the slow index 2012-09-25 22:04:01 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmB-gCGEs--zfmvYU-__Hj2FbliUXgxMDs
f869624f9c Added a comment: Fixed 2012-07-13 19:27:47 +00:00
https://www.google.com/accounts/o8/id?id=AItOawmB-gCGEs--zfmvYU-__Hj2FbliUXgxMDs
50a26cce89 Added a comment: Path problems 2012-07-13 19:15:16 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
56468d41f2 Added a comment 2012-05-27 23:35:19 +00:00
http://joeyh.name/
6de910312c Added a comment 2012-05-27 22:08:50 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
b8d36b6667 Added a comment 2012-05-27 21:42:57 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
3f5b0fc6cd removed 2012-05-27 21:42:40 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
7b09d83db2 Added a comment 2012-05-27 21:41:58 +00:00
http://joeyh.name/
dd6f92bf63 Added a comment 2012-05-27 21:33:11 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
94649c1270 Added a comment 2012-05-27 21:13:50 +00:00
http://joeyh.name/
9ccf933ffa Added a comment 2012-05-27 20:53:06 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
d39c0d5420 removed 2012-05-27 20:33:22 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
085e02012f Added a comment: cannot get files 2012-05-27 20:33:10 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkaT0B6s9jQuMzQUYRVBgWqtO7BhT_ZSaE
737a273ea7 Added a comment: cannot get files 2012-05-27 20:33:01 +00:00
Joey Hess
7d6b36dffb deseq 2012-05-02 13:22:04 -04:00
Joey Hess
f165e4aa99 add section on syncing to the walkthrough 2011-12-31 14:50:40 -04:00
Joey Hess
3b1c80d795 fix 2011-12-23 12:58:39 -04:00
Joey Hess
6fcf76bcd1 slight simplification 2011-12-23 12:57:52 -04:00
Joey Hess
a0227e81f9 put in explicit fetch ; merge in walkthrough for now
and link to centralized repository tutorial
2011-12-23 12:55:11 -04:00
Joey Hess
67c9f84a1f fix broken links 2011-11-08 12:23:03 -04:00
Joey Hess
ef3457196a use SHA256 by default
To get old behavior, add a .gitattributes containing: * annex.backend=WORM

I feel that SHA256 is a better default for most people, as long as their
systems are fast enough that checksumming their files isn't a problem.
git-annex should default to preserving the integrity of data as well as git
does. Checksum backends also work better with editing files via
unlock/lock.

I considered just using SHA1, but since that hash is believed to be somewhat
near to being broken, and git-annex deals with large files which would be a
perfect exploit medium, I decided to go to a SHA-2 hash.

SHA512 is annoyingly long when displayed, and git-annex displays it in a
few places (and notably it is shown in ls -l), so I picked the shorter
hash. Considered SHA224 as it's even shorter, but feel it's a bit weird.

I expect git-annex will use SHA-3 at some point in the future, but
probably not soon!

Note that systems without a sha256sum (or sha256) program will fall back to
defaulting to SHA1.
2011-11-04 15:51:01 -04:00
Joey Hess
617bdc740f reorg 2011-10-17 13:56:36 -04:00
Joey Hess
29032cb70e When displaying a list of repositories, show git remote names in addition to their descriptions. 2011-09-30 15:02:29 -04:00
Joey Hess
73f3a00c1c typo 2011-09-19 12:21:53 -04:00
Joey Hess
8ea48c3e39 update docs 2011-09-18 20:56:37 -04:00
Joey Hess
aedf84f7d6 wording 2011-09-15 15:39:48 -04:00
Joey Hess
a0d3a343b5 copy --auto
Only does copy when numcopies is not yet satisfied.
2011-09-15 15:28:58 -04:00
Joey Hess
984c9fc052 remove optimize subcommand; use --auto instead
get, drop: Added --auto option, which decides whether to get/drop content
as needed to work toward the configured numcopies.

The problem with bundling it up in optimize was that I then found I wanted
to run an optmize that did not drop files, only got them. Considered adding
a --only-get switch to it, but that seemed wrong. Instead, let's make
existing subcommands optionally smarter.

Note that the only actual difference between drop and drop --auto is that
the latter does not even try to drop a file if it knows of not enough
copies, and does not print any error messages about files it was unable to
drop.

It might be nice to make get avoid asking git for attributes when not in
auto mode. For now it always asks for attributes.
2011-09-15 13:30:04 -04:00