]> git.ipfire.org Git - thirdparty/git.git/commit - path.c
path.c: migrate global git_path_* to take a repository argument
authorStefan Beller <sbeller@google.com>
Thu, 17 May 2018 22:51:51 +0000 (15:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 May 2018 23:13:10 +0000 (08:13 +0900)
commit102de880d24fe66a8916e7c984e5bf8db6be047c
tree0368ad2a280ca777b8edf01e77fb0ed1258c8c32
parent0437a2e365f3b9156097d029ca6f91cbb8bffd5e
path.c: migrate global git_path_* to take a repository argument

Migrate all git_path_* functions that are defined in path.c to take a
repository argument. Unlike other patches in this series, do not use the
 #define trick, as we rewrite the whole function, which is rather small.

This doesn't migrate all the functions, as other builtins have their own
local path functions defined using GIT_PATH_FUNC. So keep that macro
around to serve the other locations.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
15 files changed:
blame.c
branch.c
builtin/commit.c
builtin/fetch.c
builtin/merge.c
builtin/pull.c
builtin/reset.c
fetch-pack.c
path.c
path.h
repository.h
rerere.c
sequencer.c
shallow.c
wt-status.c