X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fdiff-format.txt;h=0398b408c05d2dccb9806c0add6d1acd13871d74;hb=50b4e0c178777a27164eb67676593255a9cbd035;hp=b426a14f5e5fa29bfdb8f026d995dc182930073d;hpb=5f3aa197ac03eabbc45046cd3b9dbcfbda0426d9;p=git.git diff --git a/Documentation/diff-format.txt b/Documentation/diff-format.txt index b426a14f..0398b408 100644 --- a/Documentation/diff-format.txt +++ b/Documentation/diff-format.txt @@ -81,7 +81,7 @@ The "diff" formatting options can be customized via the environment variable 'GIT_DIFF_OPTS'. For example, if you prefer context diff: - GIT_DIFF_OPTS=-c git-diff-index -p $(cat .git/HEAD) + GIT_DIFF_OPTS=-c git-diff-index -p HEAD 2. When the environment variable 'GIT_EXTERNAL_DIFF' is set, the @@ -117,7 +117,7 @@ git specific extension to diff format What -p option produces is slightly different from the traditional diff format. -1. It is preceeded with a "git diff" header, that looks like +1. It is preceded with a "git diff" header, that looks like this: diff --git a/file1 b/file2