Merge branch 'cc/starts-n-ends-with'
commitad7044857660af7ffaaf8fbbccc77b817d1b938f
authorJunio C Hamano <gitster@pobox.com>
Tue, 17 Dec 2013 19:47:35 +0000 (17 11:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Dec 2013 20:02:44 +0000 (17 12:02 -0800)
treeb77a7390dbbc1901e13d74c1738f327e5fa8154d
parent14a9c5f261bcc436b80700076257f02af0beec68
parent59556548230e617b837343c2c07e357e688e2ca4
Merge branch 'cc/starts-n-ends-with'

Remove a few duplicate implementations of prefix/suffix comparison
functions, and rename them to starts_with and ends_with.

* cc/starts-n-ends-with:
  replace {pre,suf}fixcmp() with {starts,ends}_with()
  strbuf: introduce starts_with() and ends_with()
  builtin/remote: remove postfixcmp() and use suffixcmp() instead
  environment: normalize use of prefixcmp() by removing " != 0"
25 files changed:
builtin/branch.c
builtin/checkout.c
builtin/commit.c
builtin/fast-export.c
builtin/fetch.c
builtin/for-each-ref.c
builtin/name-rev.c
builtin/remote.c
builtin/rev-parse.c
builtin/show-branch.c
commit.c
config.c
diff.c
fetch-pack.c
http.c
log-tree.c
notes-utils.c
pathspec.c
remote-curl.c
remote.c
revision.c
send-pack.c
sha1_name.c
upload-pack.c
wt-status.c