]> git.rmz.io Git - dotfiles.git/commitdiff
git: add lfs filter
authorSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 29 Jan 2019 07:29:09 +0000 (07:29 +0000)
committerSamir Benmendil <samir.benmendil@ultrahaptics.com>
Tue, 29 Jan 2019 07:29:09 +0000 (07:29 +0000)
I believe this is safe, even when lfs is not installed, if not this
should be removed

git/config

index 585b2cda8a43b67a1e1929f37a137cfa364f1c60..6e0ef152045893cae3c7634c8f4a4981a6b26521 100644 (file)
@@ -44,3 +44,8 @@
 [alias]
        remote-to-ssh = "!f(){ local r=$1; git remote set-url $r $(git remote get-url $r | sed -r 's,https?://([^/]+),git@\\1:,'); };f"
        clean-orig = "!git ls-files -o --exclude-standard | grep '\\.orig$' | xargs -n100 -p rm"
+[filter "lfs"]
+       clean = git-lfs clean -- %f
+       smudge = git-lfs smudge -- %f
+       process = git-lfs filter-process
+       required = true