diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-09-28 14:47:53 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-28 14:47:53 +0900 |
commit | 59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d (patch) | |
tree | 68bf3a94d919657469c3fdb7ad2204761571c9bf /builtin/cat-file.c | |
parent | Merge branch 'jk/diff-blob' (diff) | |
parent | consistently use "fallthrough" comments in switches (diff) | |
download | tgif-59373a4e03e273841c6c3b7fc9ac29c0a3e90c6d.tar.xz |
Merge branch 'jk/fallthrough'
Many codepaths have been updated to squelch -Wimplicit-fallthrough
warnings from Gcc 7 (which is a good code hygiene).
* jk/fallthrough:
consistently use "fallthrough" comments in switches
curl_trace(): eliminate switch fallthrough
test-line-buffer: simplify command parsing
Diffstat (limited to 'builtin/cat-file.c')
-rw-r--r-- | builtin/cat-file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/cat-file.c b/builtin/cat-file.c index 1ea25331d3..f5fa4fd75a 100644 --- a/builtin/cat-file.c +++ b/builtin/cat-file.c @@ -113,6 +113,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name, if (textconv_object(path, obj_context.mode, &oid, 1, &buf, &size)) break; + /* else fallthrough */ case 'p': type = sha1_object_info(oid.hash, NULL); |