Code

Don't dereference NULL upon lookup failure.
[git.git] / diff.h
diff --git a/diff.h b/diff.h
index a52496a1086ccbe8ea90acd6800dd355b1d7ff68..beccf85962b3f4cca9fa6b668fa904b59efbed52 100644 (file)
--- a/diff.h
+++ b/diff.h
@@ -59,6 +59,7 @@ typedef void (*diff_format_fn_t)(struct diff_queue_struct *q,
 #define DIFF_OPT_ALLOW_EXTERNAL      (1 << 13)
 #define DIFF_OPT_EXIT_WITH_STATUS    (1 << 14)
 #define DIFF_OPT_REVERSE_DIFF        (1 << 15)
+#define DIFF_OPT_CHECK_FAILED        (1 << 16)
 #define DIFF_OPT_TST(opts, flag)    ((opts)->flags & DIFF_OPT_##flag)
 #define DIFF_OPT_SET(opts, flag)    ((opts)->flags |= DIFF_OPT_##flag)
 #define DIFF_OPT_CLR(opts, flag)    ((opts)->flags &= ~DIFF_OPT_##flag)
@@ -68,6 +69,7 @@ struct diff_options {
        const char *orderfile;
        const char *pickaxe;
        const char *single_follow;
+       const char *a_prefix, *b_prefix;
        unsigned flags;
        int context;
        int break_opt;
@@ -246,4 +248,6 @@ extern int run_diff_index(struct rev_info *revs, int cached);
 extern int do_diff_cache(const unsigned char *, struct diff_options *);
 extern int diff_flush_patch_id(struct diff_options *, unsigned char *);
 
+extern int diff_result_code(struct diff_options *, int);
+
 #endif /* DIFF_H */