0

Visual Studio 2015 shows the author of each method in C# programs, for example

2 references | tom, 100 days ago | 1 author, 1 change
private void MyMethod()
{
}

But Tom said that he didn't write the method, and Visual Studio seemed to have a problem with determining the authors of a method after a merge. Note that we push and pull from a repository on Github.

So what does the author of each method shown by Visual Studio mean?

CodeCaster
  • 147,647
  • 23
  • 218
  • 272
Tim
  • 1
  • 141
  • 372
  • 590
  • You can always go look at the history in your source control (you can also right click -> source control -> annotate and see who last modified that code). – crashmstr Mar 03 '17 at 20:16
  • How can i find out which plugin? @Claies – Tim Mar 03 '17 at 20:17
  • Unless you change it, it will be the Microsoft Git Provider. Just look at the annotated version and/or the history. – crashmstr Mar 03 '17 at 20:18
  • 5
    I have a bit more trust in git showing correct commit\merge author than in Tom remembering what he did. – Evk Mar 03 '17 at 20:20
  • @Claies This is not an external plugin. Microsoft Git Provider is built-into VS2015 and provides information from git in CodeLens annotations. – BJ Myers Mar 03 '17 at 20:20

2 Answers2

4

It shows the last person to make any change to it. Initially, that would be the original author. After that, it's whoever last made any change.

AlG
  • 14,697
  • 4
  • 41
  • 54
1

I think the merge and the compilation was done on the enviroment of TOM for this reason you see the Tom name as the author you should see the all history in order to determine the real author. we have got the same issue but when we look at the history we find the real author.

This link explains how to find history

BRAHIM Kamel
  • 13,492
  • 1
  • 36
  • 47