what are these - @@--@@ in github

0 votes
I've seen @@--@@ a lot and not able to understand what the numbers in between mean. Can somebody explain it to me?
Jun 27, 2018 in Git & GitHub by Hannah
• 16,210 points
29 views

1 answer to this question.

0 votes
This statement is called the hunk header.

You compare two files using the diff command and this command records differences as groups of        differing line and uses common lines to capture these groups within the files.

Such groups are called hunks of difference.

     for example,

     @@ -1,5 +1,4 @@

     Here "-" denotes the source file and "+" represents the modified file to which the change refers to.

     -1 represents the starting line from the source file

     5 represents the length of hunk

     +1 represents the starting line of modified or the to file

     4 represents the length of hunk, i.e., the hunk is 6 lines long
answered Jun 27, 2018 by anonymous

Related Questions In Git & GitHub

+1 vote
1 answer
0 votes
1 answer
0 votes
1 answer

meaning of check-in code in github

It simply means to upload code to ...READ MORE

answered Apr 29, 2018 in Git & GitHub by ajs3033
• 7,280 points
159 views
0 votes
1 answer

Trying to analyse Sonarqube from Drone.io in Github PRs

Just try the below steps.The DRONE_PULL_REQUEST environment variable has ...READ MORE

answered Jun 27, 2018 in Git & GitHub by shubham
• 6,890 points
209 views
0 votes
1 answer

How to perform a sonarqube analysis from drone.io in github?

DRONE_PULL_REQUEST  env variable holds the pull request ...READ MORE

answered Jul 6, 2018 in Git & GitHub by DareDev
• 6,810 points
459 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
204 views
0 votes
1 answer
+1 vote
4 answers

GIT plugin in jenkins not able to connect to GIT repository

This looks like a git configuration issue, ...READ MORE

answered Oct 25, 2018 in Git & GitHub by Alia
2,036 views