Re: mingw, windows, crlf/lf, and git
- From
- David Lang <david.lang@digitalinsight.com>
- Date
- Feb 12, 2007, 07:28 UTC
- Message-ID
- <Pine.LNX.4.63.0702112325560.6287@qynat.qvtvafvgr.pbz>
- In-Reply-To
- <20070212042425.GB18010@thunk.org>
On Sun, 11 Feb 2007, Theodore Tso wrote:
Show 19 quoted lines
> Then for each file type, we implement a set of interfaces (perhaps as > simple as a series of executables named git-<type>-<operation>) which > if present, transforms the file from its live format to the canonical > format which is actually checked in and back again. Besides using > this for the DOS CR/LF problem, it also allows for an efficient > storage of things like OpenOffice files which are a zipped set of .xml > files. By decompressing them before pushing them into the SCM, it > means that if the user makes a tiny spelling correction in their > OpenOffice file, the delta stored in the git repository can be much > more efficiently stored (since the diff of the .xml tree will be > small, where as the diff of the entire compressed file is likely going > to be close to the entire size of the .odt file). > > Another nice thing to provide for each file type would be a > pretty-printer for the diffs, so it becomes easier to see the delta > between two versions of an OpenOffice file in a textual window. > > So, is this idea sane or completely insane? Hopefully it passes > Linus's it-solves-multiple-problems-at-once test, at least. :-)
there have been other things discussed that could use the 'do this on checkout' hooks, specificly on the issue of useing git to manage /etc the need to save/restore permissions requires a hook on checkout that doesn't exist yet. this sounds like it would solve that problem as well.
David Lang