diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-02-25 23:35:27 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-02-28 16:32:31 -0800 |
commit | fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01 (patch) | |
tree | 2de48ce64183245fd0beba56ef817dbc8e41d281 /diff.h | |
parent | 2eb06531e3d53c2604f20c32e5cb791d5044ff02 (diff) | |
download | git-fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01.tar.gz git-fcfa33ec905fcde1c16e7cbbe00d7147b89f1f01.tar.xz |
diff: make more cases implicit --no-index
When specifying an absolute path, or a relative path pointing outside
the working tree, do not fail, but roll your own diffopt parsing,
and execute a --no-index diff.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff.h')
-rw-r--r-- | diff.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -222,6 +222,8 @@ 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 setup_diff_no_index(struct rev_info *revs, + int argc, const char ** argv, int nongit, const char *prefix); 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); |