AUFS-DIFF(1)

NAME
aufs-diff - Display the diff between versions of a file in different branches

SYNOPSIS
aufs-diff -h
aufs-diff [-bn,m] path_to_check

DESCRIPTION
The aufs-diff script checks for multiple instances of a file path in different branches of the aufs union file system. If two or more are present, it calls the diff program to compare to the two versions of the file, which typically shows the differences between the two files, line by line. You can use the -b option to specify which numbered branches to compare; if it is omitted, the two uppermost (lowest-numbered) branches containing the file are compared. path_to_check can be any path that exists in two or more branches of the aufs filesystem.

OUTPUT
The output style of aufs-diff is governed by the default behaviour of the diff program on your system. Currently, no options are passed to diff.

OPTIONS
Where an option requires an argument, the space before the argument is optional. For example, -b1,4 and -b 1,4 are equivalent.

-h, --help
    Display a short help message and exit. (The help message is also displayed when aufs-diff is called with no arguments.)

-b n,m
    Show differences in the file from branch n to branch m. If the -b option is not given, by default n is the second-lowest-numbered branch in which the file is found, and m is the lowest-numbered branch (the one you will actually see in the aufs file system). The branch numbers in which the file exists can be found by running aufs-list path_to_check.

NOTES

You may need to run aufs-diff as root, if your current user does not have read access to some of the source branch folders.

The path_to_check must be in the aufs file system, and must be a regular file. Symlinks are not resolved.

EXAMPLES

aufs-diff /var/log/syslog

    List all versions of the file at /var/log/syslog.

REPORTING BUGS

Please report any bugs or other issues on the Codeberg repository: https://codeberg.org/lcpterid/aufs-dir-tools/

AUTHORS
lcpterid

SEE ALSO
aufs-find(1), aufs-list(1), aufs-clashes(1), aufs-revert(1), aufs-unwh(1)