COOPY » Guide
version 0.6.5
|
Reformat a tabular diff file.
Converting to hilite/review formats will require supplying the original spreadsheet/database. Not every diff format supported as output by ssdiff can be read as input by ssrediff.
--act=ACT
filter for an action of a particular type (update, insert, delete, none, schema)
--context=N
Number of rows of context before and after changes for highlighter diffs ("all" to include all rows)
--default-table=TABLE
name to use when a table name is needed and not supplied
--exclude-column=COLUMN
exclude the specified column even if changed
--format=FORMAT
set difference format for output
--help
show how to use this program
--include-column=COLUMN
include the specified column even if unchanged
--low-memory
prioritize low memory usage over speed
--neither
in case of conflict use cell value from common ancestor
--omit-format-name
omit any version-dependent header from diff
--omit-sheet-name
omit any sheet/table name from diff
--ours
in case of conflict use cell value that was the local choice
--output=OUTPUTFILE
direct output to this file (default is standard output)
--patch-formats
list supported patch formats
--table=TABLE
filter for a named table of a workbook/database (repeat option for multiple tables)
--theirs
in case of conflict use cell value that wasn't the local choice
--variant=VARIANT
set the desired dialect when using a poorly defined output format (currently for SQL, available variants are: sqlite, access)
You can generate test file(s) for the examples that follow:
ssrediff --test-file numbers.csv ssrediff --test-file numbers_buggy.csv
ssrediff --format sql numbers_patch.tdiff
Convert tdiff format file to SQL
ssrediff --format sql --act update numbers_patch.tdiff
Convert tdiff format file to SQL, showing updates only
ssrediff --format csv numbers_patch.tdiff
Convert tdiff format file to a CSV-readable diff format
ssrediff --format hilite --output review.csv numbers_buggy.csv numbers_patch.tdiff
Generate tabular form of diff for eyeballing. If ssrediff is compiled with gnumeric support, and output format is *.xls, color highlighting is added.
CSV: plain-text delimiter-separated family of formats
SQLITE: file-based database
SQLITEXT: sqlite-format sql dump
JSONBOOK: Spreadsheet formats in json
GNUMERIC: Spreadsheet formats (via gnumeric)
MDB: Access database format (via Mdbtools, READ-ONLY)
JMDB: Access database format (via Jackcess)
MYSQL: database connector
SOCIALCALC: SocialCalc format (via mozjs)
ssrediff version 0.6.5