Ticket Change Details
Not logged in
Overview

Artifact ID: 4c679308a97f723470f7d5176a78320ae21e3b45
Ticket: 7541963870703f09cd5bce54b3977bb2cb8e40eb
diff doesn't show newline
User & Date: anonymous 2012-11-06 07:50:41
Changes

  1. comment changed to:
    Pretty easy to reproduce, but rather irritating when you can't get back any status as to what exactly changed.
    
    <pre>% printf "some file with\nno trailing newline on the last line" > foo.hpp
    % fs ci -m "Test file with no trailing space" foo.hpp
    % echo >> foo.hpp
    % fs status
    EDITED     foo.hpp
    % fs diff --brief foo.hpp
    CHANGED  foo.hpp
    % fs di foo.hpp
    % </pre>
    
    Even `fossil gdiff` doesn't show the normal diff(1) output:
    
    <pre>% printf "foo\nhere" >> t1
    % printf "foo\nhere\n" >> t2
    % diff -u t1 t2 
    --- t1	2012-11-05 23:47:39.000000000 -0800
    +++ t2	2012-11-05 23:47:44.000000000 -0800
    @@ -1,2 +1,2 @@
     foo
    -here
    \ No newline at end of file
    +here</pre>
    
    While it makes sense that it wouldn't, the UI also doesn't show the newly added newline in the UI's diff.
    
  2. private_contact changed to: "84f59114b7eee7088fd7e2932599c69c9ad0761b"
  3. severity changed to: "Minor"
  4. status changed to: "Open"
  5. title changed to: "diff doesn't show newline"
  6. type changed to: "Code_Defect"