Fossil SCM

Rename artifact_to_json()'s F-card "oldName" property to "rename", per /chat discussion (it's shorter, saving about 1kb of output with the current trunk).

stephan 2025-03-25 15:24 trunk
Commit d2db37a75296f5bdbbdb15468772c0c2d0ace4f4629afc8c32b9a6bba8f35fd6
1 file changed +2 -2
+2 -2
--- src/manifest.c
+++ src/manifest.c
@@ -2991,20 +2991,20 @@
29912991
if( i>0 ) blob_append_char(b, ',');
29922992
blob_append_char(b, '{');
29932993
KVP_STR(0, name, pF->zName);
29942994
KVP_STR(1, uuid, pF->zUuid);
29952995
KVP_STR(1, perm, pF->zPerm);
2996
- KVP_STR(1, oldName, pF->zPrior);
2996
+ KVP_STR(1, rename, pF->zPrior);
29972997
blob_append_char(b, '}');
29982998
}
29992999
/* Special case: model checkins with no F-card as having an empty
30003000
** array, rather than no F-cards, to hypothetically simplify
30013001
** handling in JSON queries. */
30023002
blob_append_char(b, ']');
30033003
}
30043004
CARD_STR2(G, p->zThreadRoot);
3005
- if( CFTYPE_FORUM==p->type ){
3005
+ ISA( CFTYPE_FORUM ){
30063006
CARD_LETTER(H);
30073007
STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL);
30083008
CARD_STR2(I, p->zInReplyTo);
30093009
}
30103010
if( p->nField ){
30113011
--- src/manifest.c
+++ src/manifest.c
@@ -2991,20 +2991,20 @@
2991 if( i>0 ) blob_append_char(b, ',');
2992 blob_append_char(b, '{');
2993 KVP_STR(0, name, pF->zName);
2994 KVP_STR(1, uuid, pF->zUuid);
2995 KVP_STR(1, perm, pF->zPerm);
2996 KVP_STR(1, oldName, pF->zPrior);
2997 blob_append_char(b, '}');
2998 }
2999 /* Special case: model checkins with no F-card as having an empty
3000 ** array, rather than no F-cards, to hypothetically simplify
3001 ** handling in JSON queries. */
3002 blob_append_char(b, ']');
3003 }
3004 CARD_STR2(G, p->zThreadRoot);
3005 if( CFTYPE_FORUM==p->type ){
3006 CARD_LETTER(H);
3007 STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL);
3008 CARD_STR2(I, p->zInReplyTo);
3009 }
3010 if( p->nField ){
3011
--- src/manifest.c
+++ src/manifest.c
@@ -2991,20 +2991,20 @@
2991 if( i>0 ) blob_append_char(b, ',');
2992 blob_append_char(b, '{');
2993 KVP_STR(0, name, pF->zName);
2994 KVP_STR(1, uuid, pF->zUuid);
2995 KVP_STR(1, perm, pF->zPerm);
2996 KVP_STR(1, rename, pF->zPrior);
2997 blob_append_char(b, '}');
2998 }
2999 /* Special case: model checkins with no F-card as having an empty
3000 ** array, rather than no F-cards, to hypothetically simplify
3001 ** handling in JSON queries. */
3002 blob_append_char(b, ']');
3003 }
3004 CARD_STR2(G, p->zThreadRoot);
3005 ISA( CFTYPE_FORUM ){
3006 CARD_LETTER(H);
3007 STR_OR_NULL( (p->zThreadTitle && *p->zThreadTitle) ? p->zThreadTitle : NULL);
3008 CARD_STR2(I, p->zInReplyTo);
3009 }
3010 if( p->nField ){
3011

Keyboard Shortcuts

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