File: day_224__annex.largefiles.mdwn

package info (click to toggle)
git-annex 5.20141125
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 37,828 kB
  • ctags: 583
  • sloc: haskell: 42,582; sh: 1,080; ansic: 498; makefile: 316; perl: 125
file content (23 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Built a feature for power users today. `annex.largefiles` can be
configured to specify what files `git annex add` and the assistant should
put into the annex. It uses the same syntax as [[/preferred_content]],
so arbitrarily complex expressions can be built.

For example, a game written in C with some large data files could
include only 100kb or larger files, that are not C code:

	annex.largefiles = largerthan=100kb and not (include=*.c or include=*.h) 

The assistant will commit small files to git directly!
`git annex add`, being a lower level tool, skips small files
and leaves it up to you to `git add` them as desired.

It's even possible to tell the assistant that no file is too large to be
committed directly to git. `git config annex.largefiles 'exclude=*'`
The result should be much like using SparkleShare or dvcs-autosync.

-----

Also today, made the remote ssh server checking code in the webapp
deal with servers where the default shell is csh or some other non-POSIX
shell.