126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
fossil_free(z);
}
}
/*
** Print the +++/--- filename lines for a diff operation.
*/
void diff_print_filenames(const char *zLeft, const char *zRight,
u64 diffFlags, Blob *diffBlob){
char *z = 0;
if( diffFlags & DIFF_BRIEF ){
/* no-op */
}else if( diffFlags & DIFF_WEBPAGE ){
if( fossil_strcmp(zLeft,zRight)==0 ){
z = mprintf("<h1>%h</h1>\n", zLeft);
}else{
z = mprintf("<h1>%h ⇆ %h</h1>\n", zLeft, zRight);
}
|
|
>
>
|
>
>
|
|
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
fossil_free(z);
}
}
/*
** Print the +++/--- filename lines for a diff operation.
*/
void diff_print_filenames(
const char *zLeft,
const char *zRight,
u64 diffFlags,
Blob *diffBlob
){
char *z = 0;
if( diffFlags & (DIFF_BRIEF|DIFF_DEBUG1) ){
/* no-op */
}else if( diffFlags & DIFF_WEBPAGE ){
if( fossil_strcmp(zLeft,zRight)==0 ){
z = mprintf("<h1>%h</h1>\n", zLeft);
}else{
z = mprintf("<h1>%h ⇆ %h</h1>\n", zLeft, zRight);
}
|