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
• 18,030 points
50 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

What are the steps to work on any production issue in git?

Let's go through the steps to understand ...READ MORE

answered Nov 26, 2019 in Git & GitHub by Sirajul
• 48,810 points
93 views
0 votes
1 answer

Having problem in Github and remote Git repo with production and development code

I think you could start with this. The ...READ MORE

answered Apr 10, 2018 in Git & GitHub by shubham
• 6,910 points
109 views
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
268 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,910 points
263 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,400 points
355 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,989 views