Open malaybasu opened 9 years ago
You can use gitattributes on a per-directory basis, for example. But we're intrinsically dependent on the gitattributes system to decide when to apply filters. Maybe you're suggesting that git-fat have its own rule system to decide when the clean filter should be "cat" instead of creating a git-fat stub? That would be possible with the %f
support in git-1.7.4 and later, but it's definitely a more complicated system and file access on each clean filter could become a performance problem. Do you really want that? How would you like to express your rules?
Thanks for the suggestion. The per-directory gitattributes works fine and do the job now. I guess a priority based system is the ideal. I am not very conversant with git internals. How git handles with multiple rules matching the same file? How git fat handles the scenario? I have one more problem: git status does not show stale files anymore? Should I submit a bug report?
git-fat just applies clean and smudge filters without knowledge of the filename. gitattributes determines which filters to run, if any.
Please open a bug report with a script to reproduce your git status issue. Thanks.
git-fat is a wonderfully simple system. But I find one feature to be missing. I would like to keep some binary files directly under git. The current gitattributes looks like all or none rule of putting a file type under git-fat. It will be nice to have this capability.