Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Reverse the logic of the "--brief|-b" flag of the finfo command so it fits with the flag name. (no functional change) |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
b8e378bcf85ae181aba685004c671d46 |
| User & Date: | mgagnon 2024-09-20 22:30:30.884 |
Context
|
2024-09-21
| ||
| 13:31 | Apply the form-width change from [268bb73947] and [a767b75e8ffa] to /forume2. check-in: f75f1d60df user: stephan tags: trunk | |
|
2024-09-20
| ||
| 22:30 | Reverse the logic of the "--brief|-b" flag of the finfo command so it fits with the flag name. (no functional change) check-in: b8e378bcf8 user: mgagnon tags: trunk | |
| 20:24 | Remove the empty implementation of the /files webpage. (It's not only dead code since a /help page get generated for it.) check-in: e897da20a0 user: mgagnon tags: trunk | |
Changes
Changes to src/finfo.c.
| ︙ | ︙ | |||
183 184 185 186 187 188 189 |
/* this is the default, no-op */
}
zLimit = find_option("limit","n",1);
zWidth = find_option("width","W",1);
iLimit = zLimit ? atoi(zLimit) : -1;
zOffset = find_option("offset",0,1);
iOffset = zOffset ? atoi(zOffset) : 0;
| | | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
/* this is the default, no-op */
}
zLimit = find_option("limit","n",1);
zWidth = find_option("width","W",1);
iLimit = zLimit ? atoi(zLimit) : -1;
zOffset = find_option("offset",0,1);
iOffset = zOffset ? atoi(zOffset) : 0;
iBrief = find_option("brief","b",0) != 0;
if( iLimit==0 ){
iLimit = -1;
}
if( zWidth ){
iWidth = atoi(zWidth);
if( (iWidth!=0) && (iWidth<=22) ){
fossil_fatal("-W|--width value must be >22 or 0");
|
| ︙ | ︙ | |||
226 227 228 229 230 231 232 |
" AND event.objid=mlink.mid"
" AND event.objid=ci.rid"
" ORDER BY event.mtime DESC LIMIT %d OFFSET %d",
TAG_BRANCH, zFilename, filename_collation(),
iLimit, iOffset
);
blob_zero(&line);
| | | | 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
" AND event.objid=mlink.mid"
" AND event.objid=ci.rid"
" ORDER BY event.mtime DESC LIMIT %d OFFSET %d",
TAG_BRANCH, zFilename, filename_collation(),
iLimit, iOffset
);
blob_zero(&line);
if( iBrief == 0 ){
fossil_print("History for %s\n", blob_str(&fname));
}
while( db_step(&q)==SQLITE_ROW ){
const char *zFileUuid = db_column_text(&q, 0);
const char *zCiUuid = db_column_text(&q,1);
const char *zDate = db_column_text(&q, 2);
const char *zCom = db_column_text(&q, 3);
const char *zUser = db_column_text(&q, 4);
const char *zBr = db_column_text(&q, 5);
char *zOut;
if( zBr==0 ) zBr = "trunk";
if( iBrief == 0 ){
fossil_print("%s ", zDate);
zOut = mprintf(
"[%S] %s (user: %s, artifact: [%S], branch: %s)",
zCiUuid, zCom, zUser, zFileUuid, zBr);
comment_print(zOut, zCom, 11, iWidth, get_comment_format());
fossil_free(zOut);
}else{
|
| ︙ | ︙ |