summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2019-02-14 19:06:36 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-14 20:47:55 (GMT)
commit5d91669309d23383651c352abd00254982e31902 (patch)
treea8774d7cfc42b96bba4d130c760267a0366bb923 /commit.h
parent7d50d34fc7d9764766c13eb4f86171f241664b98 (diff)
downloadgit-5d91669309d23383651c352abd00254982e31902.zip
git-5d91669309d23383651c352abd00254982e31902.tar.gz
git-5d91669309d23383651c352abd00254982e31902.tar.bz2
remote-curl: reduce scope of rpc_state.stdin_preamble
The stdin_preamble field in struct rpc_state is only used in rpc_service(), and not in any functions it directly or indirectly calls. Refactor it to become an argument of rpc_service() instead. An observation of all callers of rpc_service() shows that the preamble is always set, so we no longer need the "if (preamble)" check. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions