Fossil

Check-in [d5729c31]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Do not show blank changes when doing a diff.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d5729c31b55eaeb7a7e2bea6627f28e071a81049
User & Date: drh 2011-02-04 03:21:19
Context
2011-02-07
14:34
Enhance the graph generator so that it uses less memory and so that it is not limited to a fixed number of parents (10) for each node. check-in: 5ee80c54 user: drh tags: trunk
2011-02-04
03:21
Do not show blank changes when doing a diff. check-in: d5729c31 user: drh tags: trunk
2011-02-02
01:09
After a few days of internal use for testing, merge the changes for the new LEAF meta-data table into the trunk. NB: "fossil all rebuild" is required when updating through this change. check-in: 5ac4e151 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to src/diffcmd.c.

64
65
66
67
68
69
70

71
72

73
74
75
76
77
78
79
      blob_read_from_file(&file2, zFile2);
      zName2 = zName;
    }

    /* Compute and output the differences */
    blob_zero(&out);
    text_diff(pFile1, &file2, &out, 5, ignoreEolWs);

    printf("--- %s\n+++ %s\n", zName, zName2);
    printf("%s\n", blob_str(&out));


    /* Release memory resources */
    blob_reset(&file2);
    blob_reset(&out);
  }else{
    int cnt = 0;
    Blob nameFile1;    /* Name of temporary file to old pFile1 content */







>
|
|
>







64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
      blob_read_from_file(&file2, zFile2);
      zName2 = zName;
    }

    /* Compute and output the differences */
    blob_zero(&out);
    text_diff(pFile1, &file2, &out, 5, ignoreEolWs);
    if( blob_size(&out) ){
      printf("--- %s\n+++ %s\n", zName, zName2);
      printf("%s\n", blob_str(&out));
    }

    /* Release memory resources */
    blob_reset(&file2);
    blob_reset(&out);
  }else{
    int cnt = 0;
    Blob nameFile1;    /* Name of temporary file to old pFile1 content */