diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-16 15:04:55 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-16 15:04:55 -0800 |
commit | eb0bcd0fbe34befe7648a398efc7f4156b07da48 (patch) | |
tree | 997b4970db45623e0267704c81a130202cb86c0e /diff.c | |
parent | 7283bbc70a55d7364fbeaefc1009c03fcfc8d929 (diff) | |
parent | 003c6abdb27c367747847a76b0a7890d67c794be (diff) | |
download | git-eb0bcd0fbe34befe7648a398efc7f4156b07da48.tar.gz |
Merge branch 'maint-1.6.5' into maint-1.6.6
* maint-1.6.5:
dwim_ref: fix dangling symref warning
stash pop: remove 'apply' options during 'drop' invocation
diff: make sure --output=/bad/path is caught
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2855,6 +2855,8 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac) ; else if (!prefixcmp(arg, "--output=")) { options->file = fopen(arg + strlen("--output="), "w"); + if (!options->file) + die_errno("Could not open '%s'", arg + strlen("--output=")); options->close_file = 1; } else return 0; |