diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/git-annex-unused.mdwn | 5 | ||||
-rw-r--r-- | doc/todo/Deleting_Unused_Files_by_Age.mdwn | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/doc/git-annex-unused.mdwn b/doc/git-annex-unused.mdwn index d54658f8a..f37b60be0 100644 --- a/doc/git-annex-unused.mdwn +++ b/doc/git-annex-unused.mdwn @@ -60,6 +60,11 @@ and walking the list in order from left to right. For example, "+HEAD^" adds "HEAD^". * Each - is matched against the set of refs accumulated so far. Any matching refs are removed from the set. +* "reflog" adds all the refs from the reflog. This will make past versions + of files not be considered to be unused until the ref expires from the + reflog (by default for 90 days). Note that this may make git-annex unused + take some time to complete, it if needs to check every ref from the + reflog. # SEE ALSO diff --git a/doc/todo/Deleting_Unused_Files_by_Age.mdwn b/doc/todo/Deleting_Unused_Files_by_Age.mdwn index b72768bca..babcb5633 100644 --- a/doc/todo/Deleting_Unused_Files_by_Age.mdwn +++ b/doc/todo/Deleting_Unused_Files_by_Age.mdwn @@ -11,3 +11,7 @@ I would like to not drop all unused files. > However, I think that many users expect git annex unused to be able to > immediately find and remove a file after it's been deleted. So this > probably needs to be a configurable behavior. --[[Joey]] + +>> Implemented this, `git annex unused --used-refspec=+refs/heads/*:reflog` +>> will consider all head refs as used (the default), plus consider all +>> refs in the reflog as used. [[done]] --[[Joey]] |