CSDIFF(1)
π CSDIFF π
okay bestie, so this is csdiff, a little tool from the User Commands corner of the manual (that's CSDIFF(1) to the nerds π). it takes two lists of defects, compares them, and hands you back either the ones that got added or the ones that got fixed. literally that simple, no cap.
β¨ NAME β¨
csdiff β take two lists of defects and output either added or fixed ones π¦
π SYNOPSIS π
csdiff [options] old.err new.err, where options are:
yes babe, two input files, old.err and new.err, and a whole lil menu of options that we're gonna go through rn π
πΈ DESCRIPTION πΈ
okay so here's the whole vibe β every option, every flag, nothing skipped, we're doing this properly π
-x,--fixedβ prints the fixed defects instead of the added ones. plot twist: it just swaps the arguments under the hood π-z,--ignore-pathβ matching happens without caring about the directory structure. paths? never heard of her π«Ά-i,--show-internalβ pulls internal warnings into the output too. they get a seat at the table β¨-q,--quietβ shhh π€« no parsing errors get reported.-c,--coverity-outputβ writes the result in Coverity format.-j,--json-outputβ writes the result in JSON format.--html-outputβ writes the result in HTML format.-s,--file-renamearg β accounts for a change in the file base-name,[OLD,NEW]β and heads up bestie, it's marked testing β οΈ-f,--filter-filearg β reads custom filtering rules from a file in JSON format. (the format is further down, keep reading π)--colorβ colorized console output. it's the default when you're connected to a terminal, so honestly iconic of it π--no-colorβ no colorized console output. plain. minimal. also valid.--helpβ produce help message.--versionβ print version.
π OPTIONS π
so the --filter-file option takes a list of JSON files in this exact format. and listen β a missing replace entry is equal to "replace" : "", okay? write that down π
{
"msg-filter" : [
{
"checker" : "DIVINE|SYMBIOTIC",
"regexp" : "memory"
},
{
"checker" : "COMPILER_WARNING",
"regexp" : "called on unallocated object",
"replace" : "called correctly, no UB here"
}
]
}
π EXIT STATUS π
csdiff exits with status 0 if the arguments are valid and the input files are parsed successfully.
and the cute part: it does not matter whether any defects were matched or not. matched, not matched, zero, some β doesn't matter, still 0 π
β the sign-off β
that's the whole page bestie, you ate it π«Ά this was csdiff 3.5.7, dated March 2026, and it lives in the CSDIFF(1) section of the manual. go forth and diff those defects π
β¨
π¦ where this page comes from
- epel 10: csdiff 3.5.7-1.el10_3 Β· GPL-3.0-or-later
- fedora 43: csdiff 3.5.7-1.fc43 Β· GPL-3.0-or-later
- fedora 44: csdiff 3.5.7-1.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms