Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2015-01-29 13:55:55 -04:00
commit 28815c79b9
5 changed files with 82 additions and 0 deletions

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="janis_e"
subject="comment 2"
date="2015-01-29T08:39:02Z"
content="""
Thank you for these answers, especially the 4) makes sense to me and prevented me form blowing up my repository!
"""]]

View file

@ -0,0 +1,20 @@
Hi!
I have few large files, which will be slightly modified from time to time. Consider the following example:
$ git init
$ git annex init "somerepo"
$ dd if=/dev/urandom of=foo bs=50M count=1
$ git annex add foo
$ git commit -m "foo added"
$ git annex unlock foo
$ echo "modification" >> foo
$ git annex add foo
$ git -m commit "modification 1 of foo"
$ echo "another modification" >> foo
$ git annex add foo
$ git -m commit "modification 2 of foo"
I would have expected ending up with a full copy of foo, and a delta storage for the first version and the first modification. Instead, three full-sized copies are created within the .git/annex/objects directory, even though the modifications only added a few characters.
Is there any way to not always store a full copy of each file for each modification, but only a delta?

View file

@ -0,0 +1,9 @@
Hi!
I have a few questions according to deletion and dropping with git-annex:
1. I couldn't figure out what unused files really are. What is *unused* related to? (Head of) branches? How does a file become unused?
2. If I'm working in indirect mode, I can safely `git rm` files and restore them later, by checking out the corresponding commit. Consider several git-annex repos being in sync, where the repository contains a nested directory structure. Is there a way to completely remove all deletes files within some directory (which might but not must be the root of the repo), that have been deleted for more than X days? For example I would want to run something like `git annex drop-deleted --from-folder some/subdirectory/ --older-than 5`. Is there a way to achieve this?
3. Just like 2, is there a way to remove (the content of) all non-current *versions* of all file that are older than Y days?
Thanks in advance!

View file

@ -0,0 +1,38 @@
Installed git and git annex precisely as directed on my Windows 7 system, but 'git annex test' fails with above mentioned error - as if it's not been installed.
I tried uninstalling and reinstalling
These are the contents of my git directory (from git bash prompt):
-rw-r--r-- 1 iainso Administ 708 Dec 17 21:23 Git Bash.vbs
-rw-r--r-- 1 iainso Administ 46106 Dec 17 21:23 ReleaseNotes.rtf
drwxr-xr-x 147 iainso Administ 40960 Jan 29 14:44 bin
drwxr-xr-x 51 iainso Administ 12288 Jan 29 16:10 cmd
drwxr-xr-x 3 iainso Administ 0 Jan 29 14:44 doc
drwxr-xr-x 13 iainso Administ 4096 Jan 29 14:44 etc
-rw-r--r-- 1 iainso Administ 103 Jan 28 18:38 git-annex-autostart.vbs
-rw-r--r-- 1 iainso Administ 232368 Jan 28 18:38 git-annex-licenses.txt
-rwxr-xr-x 1 iainso Administ 49799 Jan 29 16:10 git-annex-uninstall.exe
-rw-r--r-- 1 iainso Administ 88 Jan 28 18:38 git-annex-webapp.vbs
drwxr-xr-x 4 iainso Administ 0 Jan 29 14:44 git-cheetah
drwxr-xr-x 11 iainso Administ 4096 Jan 29 14:44 lib
drwxr-xr-x 3 iainso Administ 0 Jan 29 14:43 libexec
drwxr-xr-x 9 iainso Administ 0 Jan 29 14:44 share
drwxr-xr-x 5 iainso Administ 0 Jan 29 14:44 ssl
-rw-r--r-- 1 iainso Administ 635621 Jan 29 14:44 unins000.dat
-rwxr-xr-x 1 iainso Administ 1244929 Jan 29 14:42 unins000.exe

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawk53Hn5PfMJ9Y0rmLdAeRGmgq7XSGWcoNA"
nickname="Iain"
subject="comment 1"
date="2015-01-29T16:28:59Z"
content="""
Solved it, you need to add git/cmd to your windows path variable
"""]]