diff options
| author | Jeff King <peff@peff.net> | 2016-12-06 13:24:29 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2016-12-06 12:32:48 -0800 |
| commit | 986d7f4d37124e1ab7dcc99587f0d6d1deeedd9c (patch) | |
| tree | a3249c45837e57d317bb2ad1a3e7eaff5cabf090 /builtin/commit.c | |
| parent | Prepare for 2.9.4 (diff) | |
| download | git-986d7f4d37124e1ab7dcc99587f0d6d1deeedd9c.tar.gz git-986d7f4d37124e1ab7dcc99587f0d6d1deeedd9c.zip | |
http: simplify update_url_from_redirect
This function looks for a common tail between what we asked
for and where we were redirected to, but it open-codes the
comparison. We can avoid some confusing subtractions by
using strip_suffix_mem().
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
