unused: --used-refspec can now be configured to look at refs in the reflog. This provides a way to not consider old versions of files to be unused after they have reached a specified age, when the old refs in the reflog expire.
May be slow.
This commit is contained in:
parent
a51b98cdd5
commit
b11d2f5a8a
7 changed files with 40 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue