bao007fei
bao007fei

Reputation: 133

What does these numbers mean in GitHub commit page?

What does these numbers mean in the following GitHub screenshot?

GitHub screenshot

Upvotes: 0

Views: 528

Answers (1)

Antwane
Antwane

Reputation: 22598

You are reviewing a diff, meaning there is deletion and addition. These chars shows how much exactly:

  • -21,13 says the deletion is located in the sample from line 21, 13 lines long
  • +21,20 says the addition is located in the sample from line 21, 20 lines long

In other words, this diff concern an addition of 7 new lines, or maybe an addition of 10 lines and a deletion of 3 lines, etc.

These lines are the usual output of git diff command. Complete explanation are already available on this StackOverflow answer

Upvotes: 1

Related Questions