diff options
| author | Jeff King <peff@peff.net> | 2019-01-07 03:39:00 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-01-08 09:41:06 -0800 |
| commit | 5d3679ee023642825a5d3c0ca1eec251588a1848 (patch) | |
| tree | b62b740259f8dfd219d25833be65ff675eddc2cc /builtin/commit.c | |
| parent | convert has_sha1_file() callers to has_object_file() (diff) | |
| download | git-5d3679ee023642825a5d3c0ca1eec251588a1848.tar.gz git-5d3679ee023642825a5d3c0ca1eec251588a1848.zip | |
sha1-file: drop has_sha1_file()
There are no callers left of has_sha1_file() or its with_flags()
variant. Let's drop them, and convert has_object_file() from a wrapper
into the "real" function. Ironically, the sha1 variant was just copying
into an object_id internally, so the resulting code is actually shorter!
We can also drop the coccinelle rules for catching has_sha1_file()
callers. Since the function no longer exists, the compiler will do that
for us.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
