aboutsummaryrefslogtreecommitdiff
path: root/diff.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-02-27 22:18:22 -0800
committerJunio C Hamano <junkio@cox.net>2007-02-27 22:18:22 -0800
commit25a0b20c742985f31a4694f2f98e8e0059765726 (patch)
treebac574dd85770c7017d446a97d5a6257cf209713 /diff.h
parentc4f8f827555dcbbee148fd1daa4821533ead2ea2 (diff)
parent34a5e1a2d900b5dd9b9c446a3db9fdb3b29e0575 (diff)
downloadgit-25a0b20c742985f31a4694f2f98e8e0059765726.tar.gz
git-25a0b20c742985f31a4694f2f98e8e0059765726.tar.xz
Merge branch 'js/diff-ni' (early part)
* 'js/diff-ni' (early part): diff --no-index: also imitate the exit status of diff(1) Fix typo: do not show name1 when name2 fails Teach git-diff-files the new option `--no-index` run_diff_{files,index}(): update calling convention. update-index: do not die too early in a read-only repository. git-status: do not be totally useless in a read-only repository.
Diffstat (limited to 'diff.h')
-rw-r--r--diff.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/diff.h b/diff.h
index eece65ddc..4043cec04 100644
--- a/diff.h
+++ b/diff.h
@@ -75,6 +75,9 @@ struct diff_options {
int stat_width;
int stat_name_width;
+ /* this is set by diffcore for DIFF_FORMAT_PATCH */
+ int found_changes;
+
int nr_paths;
const char **paths;
int *pathlens;
@@ -219,6 +222,7 @@ extern void diff_flush(struct diff_options*);
extern const char *diff_unique_abbrev(const unsigned char *, int);
extern int run_diff_files(struct rev_info *revs, int silent_on_removed);
+extern int run_diff_files_cmd(struct rev_info *revs, int argc, const char **argv);
extern int run_diff_index(struct rev_info *revs, int cached);