0

Many times when I just open a file in VS, it shows as changed in its TFS and if I do a compare with latest version, it shows nothing which is correct. What is it that it is changing upon opening and saving a file? ( both .XAML and .cs files) that marks them as dirty? So I can disable it

  • Are you sure that you're just opening the files? I often accidentally write a space or something like this in the open file and then it's marked as changed even after reverting the changes... Which is correct from a TFS point of view. – SKull Mar 13 '14 at 14:17

1 Answers1

1

If you save a file, the Last Modified timestamp gets... well... modified. This is when most source control systems start to think the file is 'dirty'.

Rick
  • 3,361
  • 1
  • 22
  • 29
  • yeah that's what I was thinking, is there some setting somewhere in TFS maybe that says ignore timestamp for diffing? –  Mar 13 '14 at 14:23
  • @DevWannaBe We are not using TFS (we use [Plastic SCM](http://www.plasticscm.com/home.html), but we also experience this 'Identical Files' issue, but we just ignore it...), but perhaps this can help you: http://stackoverflow.com/questions/8012144/visual-studio-tfs-shows-unchanged-files-in-the-list-of-pending-changes – Rick Mar 13 '14 at 14:32