man cg-diff (Commandes) - make a diff between two git trees

NAME

cg-diff - make a diff between two git trees

SYNOPSIS

cg-diff [-c] [-m] [-s] [-p] [-r FROM_ID[..TO_ID]] [FILE]...

DESCRIPTION

Outputs a diff for converting the first tree to the second one. By default compares the current working tree to the state at the last commit. The output will automatically be displayed in a pager unless it is piped to a program.

OPTIONS

-c
Colorize the diff output
-p
Show diff to the parent of the current commit (or the commit specified by the -r parameter).
-s
Summarize the diff by showing a histogram for removed and added lines (similar to the output of diffstat(1)) and information about added and renamed files and mode changes.
-r FROM_ID[..TO_ID]
Specify the revisions to diff using either -r rev1..rev2 or -r rev1 -r rev2. If no revision is specified, the current working tree is implied. Note that no revision is different from empty revision which means -r rev.. compares between rev and HEAD, while -r rev compares between rev and working tree.
-m
Base the diff at the merge base of the -r arguments (defaulting to HEAD and origin).
-h, --help
Print usage help.

ENVIRONMENT VARIABLES

PAGER
The pager to display log information in, defaults to less.
PAGER_FLAGS
Flags to pass to the pager.
CG_LESS
This is what the $LESS environment variable value will be set to before invoking $PAGER. It defaults to $LESS concatenated with the R flag to allow displaying of colorized output.

NOTES

The : is equivalent to .. in revisions range specification (to make things more comfortable to SVN users). See cogito(7) for more details about revision specification.

COPYRIGHT

Copyright © Petr Baudis, 2005

SEE ALSO

cg-diff command is part of cogito(7), a toolkit for managing git(7) trees.