summaryrefslogtreecommitdiff
path: root/doc/devblog
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-02-02 15:35:01 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-02-02 15:35:01 -0400
commit36dd842c28a09578360e03be8cc5b0c023ae307f (patch)
tree7150d72ce8b5857ef2b146209594ee01ff33abd9 /doc/devblog
parent8adf318558c74393fbed0a746465c9b8e29a63a0 (diff)
devblog
Diffstat (limited to 'doc/devblog')
-rw-r--r--doc/devblog/day_359__annex.largefiles_gitattributes.mdwn18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/devblog/day_359__annex.largefiles_gitattributes.mdwn b/doc/devblog/day_359__annex.largefiles_gitattributes.mdwn
new file mode 100644
index 000000000..7cd5013f2
--- /dev/null
+++ b/doc/devblog/day_359__annex.largefiles_gitattributes.mdwn
@@ -0,0 +1,18 @@
+For use cases that mix annexed files with files stored in git, the
+annex.largefiles config is more important in v6 repositories than before,
+since it configures the behavior of `git add` and even `git commit -a`. To
+make it possible to set annex.largefiles so it'll stick across clones of
+a repository, I have now made it be supported in `.gitattributes` files
+as well as git config.
+
+Setting it in .gitattributes looks a little bit different, since
+the regular .gitattributes syntax can be used to match on the filename.
+
+ * annex.largefiles=(largerthan=100kb)
+ *.c annex.largefiles=nothing
+
+It seems there's no way to make a git attribute value contain whitespace.
+So, more complicated annex.largefiles expressions need to use parens to
+break up the words.
+
+ * annex.largefiles=(largerthan=100kb)and(not(include=*.c))