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
• 14,080 points

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,120 points
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,590 points
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,710 points
+13 votes
2 answers
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

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.