X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fdiff-format.txt;h=e38a1f14056b2e3cfe3c281eb7df7e5b44d520db;hb=2555699aa2863861e32d222ede2c3df2dbf92088;hp=378e72f38f37eef50135c3907ccd605652f4fd96;hpb=ea44949605781d1947ba1422ee541867e7ce9b81;p=git.git diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt index 378e72f38..e38a1f140 100644 --- a/Documentation/diff-format.txt +++ b/Documentation/diff-format.txt @@ -59,6 +59,28 @@ When `-z` option is not used, TAB, LF, and backslash characters in pathnames are represented as `\t`, `\n`, and `\\`, respectively. +diff format for merges +---------------------- + +"git-diff-tree" and "git-diff-files" can take '-c' or '--cc' option +to generate diff output also for merge commits. The output differs +from the format described above in the following way: + +. there is a colon for each parent +. there are more "src" modes and "src" sha1 +. status is concatenated status characters for each parent +. no optional "score" number +. single path, only for "dst" + +Example: + +------------------------------------------------ +::100644 100644 100644 fabadb8... cc95eb0... 4866510... MM describe.c +------------------------------------------------ + +Note that 'combined diff' lists only files which were modified from +all parents. + Generating patches with -p --------------------------