<div dir="ltr">Might be irrelevant, but all of my code is in Dropbox, and I work from various locations. I doubt that would have an effect on the metadata files, presumably stored on the local drives, but I thought I'd mention it.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 7, 2014 at 9:35 AM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 7 Oct 2014, at 17:39, Gerd Knops wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
IIRC TextMate does see if a file changed and reloads it, couldn't it figure out that folds no longer match?<br>
</blockquote>
<br></span>
When reloading an open file, it shouldn’t cause issues.<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Maybe the stored fold data could be somehow fingerprinted with some file data? Or before re-applying the folding TextMate could check if the stored fold locations match actual fold candidates in the current text?<br>
</blockquote>
<br></span>
I added a CRC 32 check when reading the folding data so that if the content has changed, the folding data will be ignored.<br>
<br>
Not sure this will do anything for you though, as Git normally write new files, so it does not inherit the extended attributes from the previous content.<br>
<br>
Perhaps there are cases where this is not the case, but I tested checkout plus stash and in both cases, the extended attributes were lost when Git made changes to the content.<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/<u></u>listinfo/textmate</a></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Wells Oliver<br><a href="mailto:wellsoliver@gmail.com" target="_blank">wellsoliver@gmail.com</a>
</div>