On Thu, Feb 20, 2014 at 6:10 PM, spamwax <[email protected]> wrote:

>
>
> On Wednesday, February 19, 2014 2:05:47 PM UTC-5, [email protected] wrote:
>>
>>
>> Hmm, I tried to download Sublime Text 2 from here:
>> http://www.sublimetext.com/2
>>
>> On both OSX 10.8.4 and 10.9.1, when I save the file in Sublime, 'tup upd'
>> picks up the change correctly. Any idea what I might be doing differently?
>>
>> -Mike
>>
>
> I am using Sublime Text 3, and I have its 'atomic save' option set to true:
>
> // Save via writing to an alternate file, and then renaming it over the
> original file.
>     "atomic_save": true,
>
>
>
Ahh, thanks - I can reproduce it with Sublime Text 3. So somehow when it
saves the file, it's not updating the ctime (only the mtime). We need to
check the ctime because 'chmod' only affects the ctime. And I thought all
other operations that affect mtime also update ctime (eg: 'touch', 'vim',
etc all modify both ctime+mtime).

I guess we need to check both times somehow on OSX? I'd prefer not to have
to add another field to the database, but maybe there's a way to do it
(like using max(ctime, mtime) as the timestamp or something). I'll have to
fiddle around a bit...

-Mike

-- 
-- 
tup-users mailing list
email: [email protected]
unsubscribe: [email protected]
options: http://groups.google.com/group/tup-users?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"tup-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to