You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the interesting things that showed up the other day when importing a large git repo, is that the steps for retroactive importing have a "find" command that locates files over X size.
Which is weird, as the whole point of using git-fat isn't to separate out files over X size, but to separate out specific file types (eg .jpg, .png, etc).
Is there a way to generate the retroactive file list using file types (eg .jpg, .png, etc), instead of using their file size? That would be more in line with how imported git-fat repos are then used. 😄
The text was updated successfully, but these errors were encountered:
Hmm, this is an excellent point. We actually use git-fat to prevent any large files from getting into the repository using a pre-commit hook, so that was our primary use case. However, git doesn't have an 'over-x-size' gitattributes filter mechanism (as far as I know), so patterns were used instead in the .gitattributes file as a kind of workaround.
I do see big value in a command to find a particular filename in the repositories history though. Judging from this stack overflow question, it would be nice to have a command for it in git-fat.
I haven't forgotten about this. This issue made me discover a potentially more efficient and cleaner way of finding files in the repository. I just haven't had the time to investigate it in detail yet since it's in one of the core functions of the script.
If you're curious, I'm looking at replacing git rev-list and git cat-file with git ls-tree -lr in the _rev_list function which is called by _managed_files. _managed_files is the core function which finds all the git-fat files in the repository.
One of the interesting things that showed up the other day when importing a large git repo, is that the steps for retroactive importing have a "find" command that locates files over X size.
Which is weird, as the whole point of using git-fat isn't to separate out files over X size, but to separate out specific file types (eg .jpg, .png, etc).
Is there a way to generate the retroactive file list using file types (eg .jpg, .png, etc), instead of using their file size? That would be more in line with how imported git-fat repos are then used. 😄
The text was updated successfully, but these errors were encountered: