This commit is contained in:
parent
629b794eb5
commit
de6a2db36c
1 changed files with 15 additions and 0 deletions
15
doc/forum/Auto_archiving.mdwn
Normal file
15
doc/forum/Auto_archiving.mdwn
Normal file
|
@ -0,0 +1,15 @@
|
|||
I've been toying with the idea of auto archiving files (that is - removing them from .) based on a set of rules.
|
||||
|
||||
Git already provides attribute management for files and I put together a simple script that tries to achieve the following:
|
||||
|
||||
* Look for files with X copies (including a local one)
|
||||
* Verify that the file is not recent (defined as not having been dropped or getted within X days )
|
||||
* Verify that the file has an annex.archive attribute
|
||||
* Archive if the above is met
|
||||
|
||||
Here is the script:
|
||||
http://pastebin.com/53iLqyPd
|
||||
|
||||
You just add the annex.archive attribute to files via .gitattributes to use
|
||||
|
||||
Open to thoughts / suggestions
|
Loading…
Reference in a new issue