in Education by
When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Those are called (c)hunk headers and contain the range information. They are surrounded by double at signs @@. They are of the format: @@ -l,s +l,s @@ where l is the starting line number and s is the number of lines the change (c)hunk applies to for each respective file. The - indicates the original file and the + indicates the new (modified) file. Note that it not only shows affected lines, but also context lines. The -1,5 is in the original file (indicated by the -). It shows that that first line is the start and 5 affected / context lines The +1,9 is in the new (modified) file (indicated by the +) and again first line is the start and 9 affected / context lines. More details here: http://en.wikipedia.org/wiki/Diff#Unified_format

Related questions

0 votes
    When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    When I use svn diff or git diff it shows lines like: @@ -1,5 +1,9 @@ What do they mean ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 7, 2022 in Education by JackTerrance
0 votes
    I can do following: git diff tag1 tag2 --stat But this gives me list of files.. How can I know ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jul 20, 2022 in Education by JackTerrance
0 votes
    Recently, I have been asked to cherry-pick a commit. So what does cherry-picking a commit in git mean? How do you do it? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    What is git diff command? How is it different from git status?...
asked Nov 4, 2020 in Technology by JackTerrance
0 votes
    What is the difference between the ‘git diff ’and ‘git status’?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What do you mean by Tag in SVN?...
asked Feb 21, 2021 in Technology by JackTerrance
0 votes
    I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the . ... tree into the index. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    What is GIT Vs SVN - Comparison?...
asked Feb 17, 2021 in Technology by JackTerrance
0 votes
    What is the difference between GIT and SVN?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    What is mean by 'src refspec master does not match any when pushing commits in Git?...
asked Jan 8, 2021 in Technology by JackTerrance
0 votes
    Which of the following command line environment is used for interacting with Git? (a) GitHub (b) Git ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 31, 2021 in Education by JackTerrance
0 votes
    This question already has answers here: When to use ":"(colon) operator in javascript vs "=" operator ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 3, 2022 in Education by JackTerrance
0 votes
    This question already has answers here: When to use ":"(colon) operator in javascript vs "=" operator ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    Written communication involves: 1.TALKING TO INDIVIDUALS 2.UNDERSTANDING THE SIGNS AND SYMBOLS 3.LETTERS, MEMOS, BOOKS 4.NONE OF THESE Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
...