repodiffer (1) - Linux Man Pages
repodiffer: report differences between repository histories
repodiffer - report differences between repository histories
parts] [--quiet] [--verbose level] [--show-equal] [--changes-only] [--full-hash] [--tree-diff] [--legacy-map mapfile] [--single id1=id2] repo-or-stream1 repo-or-stream2
Revisions are first paired into correspondence by committer and commit date. Any revision in the left-hand (L) history that cannot be paired with a revision in the right-hand (R) history is interpreted as having been deleted; any revision in the R history that cannot be paired with a revision in the L history is interpreted as having been inserted.
For each changed, inserted, or deleted revision, a summary line is emitted identifying it by commit ID (for a repo) or mark (for a stream file) in the first history. In change reports, the corresponding revision in the second history is similarly identified and the report indicates the nature of the changes.
A trailing statistics line summarizes the operation counts.
The --changes-only or -c option shows changes only, suppressing listing of insertions and deletions.
The --show-equal or -e option enables listing of equal commits.
The --legacy-map or -m option takes a legacy map file in the format produced by reposurgeon, associating legacy commit IDs with committer/time pairs. If the tool can find a matching committer/time pair for a commit in this file, reports on this commit (and any matched pair it is part of) will be decorated with the legacy ID of the commit. (This will work, in particular, for displaying Subversion revisions of commits lifted from a Subversion file.)
The --single or -s option compares single commits in detail. The argument must be a pair of commit IDs (marks or hashes) separated by an equals sign.
The --ignore or -i option causes differences between specified parts to be ignored. Part tags are as follows:
- Ignore differences in the (name part of the) author field.
- Ignore differences in the author date part.
- Ignore differences in the (name part of the) committer field.
- Ignore differences in the commit date part
- Ignore differences in parent links.
- Apply a modulo 360 operation to timestamps before comparison, so as to ignore time-zone skew.
- Ignore tree-content differences. (It is not expected that this option will be useful; it is provided for completeness's sake.)
- Ignore .gitignore and .cvsignore files when comparing tree content. Useful if you are comparing translations done by pairs of lifting tools only one of which lifts these; a notable case of this is reposurgeon vs. git-svn.
- Ignore email addresses when comparing names. This can be useful when comparing two repositories translated from Subversion; typically they'll have the Subversion Unix user ID as the name part of the address, but whether and how a host part is generated for the address varies.
One of these or a comma-separated list of several can be specified.
The --fullhash or -f option forces reporting of full 40-digit hash IDs, rather than the normal short hash.
Normally only the names of differing files are listed. With the --tree-diff option, context diffs of the files are listed.
The --quiet or -q option suppresses the progress meter.
For scripting use, this program returns 0 unless content (tree) differences were found in matching commits, in which case it returns 1. Right-side-only or left-side-only commits do not cause a return of 1, nor do differences in change comments only.
Eric S. Raymond <esr [at] thyrsus.com>. This tool is distributed with reposurgeon; see the project page at m[blue]http://www.catb.org/~esr/reposurgeonm.