[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwrite-devel
Subject:    Re: subversions markers in icon border
From:       Will Angenent <will.angenent () ntt ! eu>
Date:       2008-12-19 14:38:15
Message-ID: 494BB1D7.8080309 () ntt ! eu
[Download RAW message or body]


>
> I don't think a timer is needed at all, for svn or git to see any
> differences you need to save the file, so the natural choice for a check on
> the status is when saving the file - IMHO. No need for anything to watch or
> a timer (which might wake up the CPU/disk too often with a laptop)
>
>   
Yes, you're absolutely right. The only way I can get a diff is when a 
file is saved. For the situation of a file is being edited, I'm planning 
on writing things to find out which lines are changed on the fly based 
on a diff from when a file was saved in the past, so that the markers 
can be updated as a file is being edited.

I still don't know what to do about commit detection though. If there is 
a way to get a notification when a file is modified, I could probably 
just keep an eye on the right file in CVS/.svn/.git, e.g. the one that 
contains the HEAD revision number. If that changes, bingo!

Will
_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic