Fossil SCM

For "fossil git export", add the comment line at the end of automatically generated "manifest" files so that they do not appear to be valid Fossil artifacts.

drh 2021-12-21 18:22 trunk
Commit 4ff45df4294c178cbb7c5556432427b9c5bc62b348b6984c9c98afb9a397871c
1 file changed +1
--- src/export.c
+++ src/export.c
@@ -1272,10 +1272,11 @@
12721272
12731273
/* Include Fossil-generated auxiliary files in the check-in */
12741274
if( fManifest & MFESTFLG_RAW ){
12751275
Blob manifest;
12761276
content_get(rid, &manifest);
1277
+ sterilize_manifest(&manifest, CFTYPE_MANIFEST);
12771278
fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n",
12781279
blob_strlen(&manifest), blob_str(&manifest));
12791280
blob_reset(&manifest);
12801281
}
12811282
if( fManifest & MFESTFLG_UUID ){
12821283
--- src/export.c
+++ src/export.c
@@ -1272,10 +1272,11 @@
1272
1273 /* Include Fossil-generated auxiliary files in the check-in */
1274 if( fManifest & MFESTFLG_RAW ){
1275 Blob manifest;
1276 content_get(rid, &manifest);
 
1277 fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n",
1278 blob_strlen(&manifest), blob_str(&manifest));
1279 blob_reset(&manifest);
1280 }
1281 if( fManifest & MFESTFLG_UUID ){
1282
--- src/export.c
+++ src/export.c
@@ -1272,10 +1272,11 @@
1272
1273 /* Include Fossil-generated auxiliary files in the check-in */
1274 if( fManifest & MFESTFLG_RAW ){
1275 Blob manifest;
1276 content_get(rid, &manifest);
1277 sterilize_manifest(&manifest, CFTYPE_MANIFEST);
1278 fprintf(xCmd,"M 100644 inline manifest\ndata %d\n%s\n",
1279 blob_strlen(&manifest), blob_str(&manifest));
1280 blob_reset(&manifest);
1281 }
1282 if( fManifest & MFESTFLG_UUID ){
1283

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button