Subversion: how to interpret diff results?









up vote
4
down vote

favorite
1












I have just started to use svn. When comparing to files using svn diff command, the output seems to be very odd. How to intepret diff output? I tried svn diff help but it did not tell anything useful about the output (or I did not understand it).










share|improve this question























  • Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
    – XstreamINsanity
    Aug 18 '10 at 11:23










  • e.g what this means: @@ -10,6 +10,7 @@
    – juur
    Aug 18 '10 at 11:28














up vote
4
down vote

favorite
1












I have just started to use svn. When comparing to files using svn diff command, the output seems to be very odd. How to intepret diff output? I tried svn diff help but it did not tell anything useful about the output (or I did not understand it).










share|improve this question























  • Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
    – XstreamINsanity
    Aug 18 '10 at 11:23










  • e.g what this means: @@ -10,6 +10,7 @@
    – juur
    Aug 18 '10 at 11:28












up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





I have just started to use svn. When comparing to files using svn diff command, the output seems to be very odd. How to intepret diff output? I tried svn diff help but it did not tell anything useful about the output (or I did not understand it).










share|improve this question















I have just started to use svn. When comparing to files using svn diff command, the output seems to be very odd. How to intepret diff output? I tried svn diff help but it did not tell anything useful about the output (or I did not understand it).







svn






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 5 at 7:29









Laurent H.

3,9111530




3,9111530










asked Aug 18 '10 at 11:22









juur

2,327102634




2,327102634











  • Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
    – XstreamINsanity
    Aug 18 '10 at 11:23










  • e.g what this means: @@ -10,6 +10,7 @@
    – juur
    Aug 18 '10 at 11:28
















  • Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
    – XstreamINsanity
    Aug 18 '10 at 11:23










  • e.g what this means: @@ -10,6 +10,7 @@
    – juur
    Aug 18 '10 at 11:28















Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
– XstreamINsanity
Aug 18 '10 at 11:23




Can you provide screenshots of what you don't understand, that'd be the easiest way to help.
– XstreamINsanity
Aug 18 '10 at 11:23












e.g what this means: @@ -10,6 +10,7 @@
– juur
Aug 18 '10 at 11:28




e.g what this means: @@ -10,6 +10,7 @@
– juur
Aug 18 '10 at 11:28












2 Answers
2






active

oldest

votes

















up vote
0
down vote













Are you using the command-line? You should probably install GUI tools such as Tortoise SVN, that will be much easier to understand.



The "svn diff" command-line output is not meant to be read by a human, rather you would feed it into a program which understands that output (typically this program will show you two text editor windows with the old and new files, and would highlight the differences).



Basically, the SVN DIFF output shows you the character and line positions and the text which has changed between the files.






share|improve this answer






















  • Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
    – juur
    Aug 18 '10 at 11:27










  • Ok, thanks!....
    – juur
    Aug 18 '10 at 11:36










  • @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
    – Michael Borgwardt
    Aug 18 '10 at 11:37










  • @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
    – Jon
    Aug 31 '17 at 9:00

















up vote
0
down vote













@juur,




The svn diff command produces this output by comparing your working files against the cached “pristine” copies within the .svn area. Files scheduled for addition are displayed as all added text, and files scheduled for deletion are displayed as all deleted text.



Output is displayed in unified diff format. That is, removed lines are prefaced with -, and added lines are prefaced with +. svn diff also prints filename and offset information useful to the patch program, so you can generate “patches” by redirecting the diff output to a file




You can check more information on how svn diff works in SVN Book.






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3511497%2fsubversion-how-to-interpret-diff-results%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    Are you using the command-line? You should probably install GUI tools such as Tortoise SVN, that will be much easier to understand.



    The "svn diff" command-line output is not meant to be read by a human, rather you would feed it into a program which understands that output (typically this program will show you two text editor windows with the old and new files, and would highlight the differences).



    Basically, the SVN DIFF output shows you the character and line positions and the text which has changed between the files.






    share|improve this answer






















    • Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
      – juur
      Aug 18 '10 at 11:27










    • Ok, thanks!....
      – juur
      Aug 18 '10 at 11:36










    • @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
      – Michael Borgwardt
      Aug 18 '10 at 11:37










    • @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
      – Jon
      Aug 31 '17 at 9:00














    up vote
    0
    down vote













    Are you using the command-line? You should probably install GUI tools such as Tortoise SVN, that will be much easier to understand.



    The "svn diff" command-line output is not meant to be read by a human, rather you would feed it into a program which understands that output (typically this program will show you two text editor windows with the old and new files, and would highlight the differences).



    Basically, the SVN DIFF output shows you the character and line positions and the text which has changed between the files.






    share|improve this answer






















    • Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
      – juur
      Aug 18 '10 at 11:27










    • Ok, thanks!....
      – juur
      Aug 18 '10 at 11:36










    • @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
      – Michael Borgwardt
      Aug 18 '10 at 11:37










    • @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
      – Jon
      Aug 31 '17 at 9:00












    up vote
    0
    down vote










    up vote
    0
    down vote









    Are you using the command-line? You should probably install GUI tools such as Tortoise SVN, that will be much easier to understand.



    The "svn diff" command-line output is not meant to be read by a human, rather you would feed it into a program which understands that output (typically this program will show you two text editor windows with the old and new files, and would highlight the differences).



    Basically, the SVN DIFF output shows you the character and line positions and the text which has changed between the files.






    share|improve this answer














    Are you using the command-line? You should probably install GUI tools such as Tortoise SVN, that will be much easier to understand.



    The "svn diff" command-line output is not meant to be read by a human, rather you would feed it into a program which understands that output (typically this program will show you two text editor windows with the old and new files, and would highlight the differences).



    Basically, the SVN DIFF output shows you the character and line positions and the text which has changed between the files.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 18 '10 at 11:31

























    answered Aug 18 '10 at 11:25









    RickL

    2,19531635




    2,19531635











    • Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
      – juur
      Aug 18 '10 at 11:27










    • Ok, thanks!....
      – juur
      Aug 18 '10 at 11:36










    • @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
      – Michael Borgwardt
      Aug 18 '10 at 11:37










    • @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
      – Jon
      Aug 31 '17 at 9:00
















    • Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
      – juur
      Aug 18 '10 at 11:27










    • Ok, thanks!....
      – juur
      Aug 18 '10 at 11:36










    • @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
      – Michael Borgwardt
      Aug 18 '10 at 11:37










    • @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
      – Jon
      Aug 31 '17 at 9:00















    Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
    – juur
    Aug 18 '10 at 11:27




    Yes, I'm using command line. I would like to fist understand how command line svn works, and then probably move to tortoiseSVN
    – juur
    Aug 18 '10 at 11:27












    Ok, thanks!....
    – juur
    Aug 18 '10 at 11:36




    Ok, thanks!....
    – juur
    Aug 18 '10 at 11:36












    @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
    – Michael Borgwardt
    Aug 18 '10 at 11:37




    @juur: well, the command line works by spitting out a diff, which is designed to be compact and easily parseable by programs, not to be easily readable by humans.
    – Michael Borgwardt
    Aug 18 '10 at 11:37












    @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
    – Jon
    Aug 31 '17 at 9:00




    @juur: in command line, you can use vimdiff to view the diffs (it is very easily configurable, you have to edit the diff-editor in svn config file)
    – Jon
    Aug 31 '17 at 9:00












    up vote
    0
    down vote













    @juur,




    The svn diff command produces this output by comparing your working files against the cached “pristine” copies within the .svn area. Files scheduled for addition are displayed as all added text, and files scheduled for deletion are displayed as all deleted text.



    Output is displayed in unified diff format. That is, removed lines are prefaced with -, and added lines are prefaced with +. svn diff also prints filename and offset information useful to the patch program, so you can generate “patches” by redirecting the diff output to a file




    You can check more information on how svn diff works in SVN Book.






    share|improve this answer
























      up vote
      0
      down vote













      @juur,




      The svn diff command produces this output by comparing your working files against the cached “pristine” copies within the .svn area. Files scheduled for addition are displayed as all added text, and files scheduled for deletion are displayed as all deleted text.



      Output is displayed in unified diff format. That is, removed lines are prefaced with -, and added lines are prefaced with +. svn diff also prints filename and offset information useful to the patch program, so you can generate “patches” by redirecting the diff output to a file




      You can check more information on how svn diff works in SVN Book.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        @juur,




        The svn diff command produces this output by comparing your working files against the cached “pristine” copies within the .svn area. Files scheduled for addition are displayed as all added text, and files scheduled for deletion are displayed as all deleted text.



        Output is displayed in unified diff format. That is, removed lines are prefaced with -, and added lines are prefaced with +. svn diff also prints filename and offset information useful to the patch program, so you can generate “patches” by redirecting the diff output to a file




        You can check more information on how svn diff works in SVN Book.






        share|improve this answer












        @juur,




        The svn diff command produces this output by comparing your working files against the cached “pristine” copies within the .svn area. Files scheduled for addition are displayed as all added text, and files scheduled for deletion are displayed as all deleted text.



        Output is displayed in unified diff format. That is, removed lines are prefaced with -, and added lines are prefaced with +. svn diff also prints filename and offset information useful to the patch program, so you can generate “patches” by redirecting the diff output to a file




        You can check more information on how svn diff works in SVN Book.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 18 '10 at 12:10









        andreyv

        795




        795



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f3511497%2fsubversion-how-to-interpret-diff-results%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kleinkühnau

            Makov (Slowakei)

            Deutsches Schauspielhaus