summaryrefslogtreecommitdiff
path: root/builtin/push.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-18 19:42:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-18 21:56:54 (GMT)
commitc0264180d74510669bcec9bb5ff12a145c685b8e (patch)
treeecd1875c4e0e09af61b0b2321e4f1e6f851ed04d /builtin/push.c
parent1055a890f04784d7ea7cdaca8d30479e685d8643 (diff)
downloadgit-c0264180d74510669bcec9bb5ff12a145c685b8e.zip
git-c0264180d74510669bcec9bb5ff12a145c685b8e.tar.gz
git-c0264180d74510669bcec9bb5ff12a145c685b8e.tar.bz2
avoid using skip_prefix as a boolean
There's no point in using: if (skip_prefix(buf, "foo")) over if (starts_with(buf, "foo")) as the point of skip_prefix is to return a pointer to the data after the prefix. Using starts_with is more readable, and will make refactoring skip_prefix easier. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/push.c')
0 files changed, 0 insertions, 0 deletions