diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-13 21:45:51 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-13 21:55:07 +0200 |
commit | 52f28529f4f90cebdca47f8eacbff5cb20004bed (patch) | |
tree | 5582a75c2121fca35a99eb35d9e22f97cd2ed5b3 /diff.h | |
parent | [PATCH] diff-stages: support "-u" as a synonym for "-p". (diff) | |
download | git-52f28529f4f90cebdca47f8eacbff5cb20004bed.tar.xz git-52f28529f4f90cebdca47f8eacbff5cb20004bed.zip |
[PATCH] git-diff-*: --name-only and --name-only-z.
Porcelain layers often want to find only names of changed files,
and even with diff-raw output format they end up having to pick
out only the filename. Support --name-only (and --name-only-z
for xargs -0 and cpio -0 users that want to treat filenames with
embedded newlines sanely) flag to help them.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -59,6 +59,8 @@ extern int diff_queue_is_empty(void); #define DIFF_FORMAT_MACHINE 1 #define DIFF_FORMAT_PATCH 2 #define DIFF_FORMAT_NO_OUTPUT 3 +#define DIFF_FORMAT_NAME 4 +#define DIFF_FORMAT_NAME_Z 5 extern void diff_flush(int output_style); |