DIRDIFF(1)
β¨ DIRDIFF β bestie edition β¨
okay so π you know how you have like five copies of the same project lying around and you're like "which one did i actually fix the bug in"? yeah. this is the manual for dirdiff, a graphical tool for displaying differences and merging changes between directory trees, living in the General Commands Manual section of your friendly neighbourhood man setup. grab a snack π, this one's a whole vibe.
πΈ SYNOPSIS πΈ
dirdiff [-a|--all] [-o|--only pattern] [-I|--ignore pattern] [-r|--rcs]
[-t|--bktag] [-c|--context num] [-b] [-w] [-B] [-i] [-d] [-S] [-k]
dir1 dir2 ...
literally just point it at your directories and let it cook. π«Ά
π OPTIONS π
-a,--allβ Don't exclude any files. every single one gets an invite to the party. π-o,--only patternβ Only process files matching pattern. strict guest list only.-I,--ignore patternβ Don't process files matching pattern. blocked. not on the list. π-r,--rcsβ Ignore differences in RCS strings. those$Revision$things? yeah, not the drama we're here for.-t,--bktagβ Ignore differences in Bitkeeper strings. same energy, different version control.-c,--context numβ Set number of lines of context to show. how much β¨loreβ¨ you want around each change.-b,-w,-B,-i,-dβ Pass these on todiff. dirdiff isn't gonna gatekeep, it just hands them straight over to the real one.-Sβ Show files that are the same in the file list. yes bestie, the same ones, sometimes you just want the full picture.-Kβ Enable bitkeeper support. (that's a capital K, iykyk π)
ngl the synopsis says-kand the options list says-K. that's just how it is. not my problem, i report, i don't fix. π
π¦ DESCRIPTION π¦
Dirdiff is a graphical tool for displaying the differences between directory trees β up to 5 of them, iconic β and for merging changes from one tree into another. π
At startup, dirdiff displays a main window with a list of the files that are different between the trees. Colored squares are used to indicate the relative ages of the versions. Files are like leaves on a deciduous tree: the newest ones are green, and then they turn yellow, orange, and red as they get older. Missing files are black, and directories are white. it's giving autumn but make it filesystem π
To see the differences between two versions of a file, double-click on the file name. By default, the first and last versions are compared, but this can be changed using the Diff menu in the main window. In the differences window, there are checkboxes to the left of all the sections which are different. You can use button 1 to select an individual checkbox, or shift-button 1 or button 3 to select a whole group. Selecting a line means that you are asking for that change to be made when you update either of the files using the Merge menu. The line will be removed if it is already present or added if it is not present. main character energy fr fr π
To copy from one tree to another, click on the file name and select the appropriate copy operation from the Copy menu of the main window.
Selecting Make patch from the File menu of the main window produces a file describing the changes between the files that can be applied by the patch tool. You can edit the patch before saving, and may wish to add explanatory text, instructions, or patch Prereq lines at the beginning. To save the patch, enter a filename in the patch window relative to the current directory, and choose Save. This will also close the window. slay β¨
If you are sending out patches, then the from directory should be the original version of the source. Try to make sure that the two files have the same number of leading directories. See the patch(1) man page for more information. (yes bestie, we're citing the man page inside the man page. meta. obsessed.)
π NOTES π
Dirdiff needs to be able to load the libfilecmp.so.0.0 shared library for the -r or -t flags to work. no library, no ignoring-those-strings, no exceptions. π
π SEE ALSO π
π AUTHOR π
Paul Mackerras β legend behaviour, no cap.
π written by the icon Paul Mackerras, dated May 2002, shipped as part of General Commands Manual, and it's DIRDIFF(1) forever and always. bye bestie, go diff something pretty β¨π¦πΈ
π¦ where this page comes from
- debian bookworm: dirdiff 2.1-9 Β· GPL-2.0-or-later
- debian trixie: dirdiff 2.1-9+b2 Β· GPL-2.0-or-later
- ubuntu jammy: dirdiff 2.1-7.2
- ubuntu noble: dirdiff 2.1-9 Β· GPL-2.0-or-later
- ubuntu questing: dirdiff 2.1-9
- ubuntu resolute: dirdiff 2.1-9build1 Β· GPL-2.0-or-later
- ubuntu stonking: dirdiff 2.1-9build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms