send-pack: move core code to libgit.a

send_pack() is used by transport.c, part of libgit.a while it stays in
builtin/send-pack.c. Move it to send-pack.c so that we won't get
undefined reference if a program that uses libgit.a happens to pull it
in.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
4 files changed
tree: 4c5c9ffba07787cf635df9aa230973d82dafed36
  1. block-sha1/
  2. builtin/
  3. compat/
  4. contrib/
  5. Documentation/
  6. git-gui/
  7. git_remote_helpers/
  8. gitk-git/
  9. gitweb/
  10. mergetools/
  11. perl/
  12. po/
  13. ppc/
  14. t/
  15. templates/
  16. vcs-svn/
  17. xdiff/
  18. .gitattributes
  19. .gitignore
  20. .mailmap
  21. abspath.c
  22. aclocal.m4
  23. advice.c
  24. advice.h
  25. alias.c
  26. alloc.c
  27. archive-tar.c
  28. archive-zip.c
  29. archive.c
  30. archive.h
  31. argv-array.c
  32. argv-array.h
  33. attr.c
  34. attr.h
  35. base85.c
  36. bisect.c
  37. bisect.h
  38. blob.c
  39. blob.h
  40. branch.c
  41. branch.h
  42. builtin.h
  43. bulk-checkin.c
  44. bulk-checkin.h
  45. bundle.c
  46. bundle.h
  47. cache-tree.c
  48. cache-tree.h
  49. cache.h
  50. check-builtins.sh
  51. check-racy.c
  52. check_bindir
  53. color.c
  54. color.h
  55. column.c
  56. column.h
  57. combine-diff.c
  58. command-list.txt
  59. commit.c
  60. commit.h
  61. config.c
  62. config.mak.in
  63. configure.ac
  64. connect.c
  65. connected.c
  66. connected.h
  67. convert.c
  68. convert.h
  69. copy.c
  70. COPYING
  71. credential-cache--daemon.c
  72. credential-cache.c
  73. credential-store.c
  74. credential.c
  75. credential.h
  76. csum-file.c
  77. csum-file.h
  78. ctype.c
  79. daemon.c
  80. date.c
  81. decorate.c
  82. decorate.h
  83. delta.h
  84. diff-delta.c
  85. diff-lib.c
  86. diff-no-index.c
  87. diff.c
  88. diff.h
  89. diffcore-break.c
  90. diffcore-delta.c
  91. diffcore-order.c
  92. diffcore-pickaxe.c
  93. diffcore-rename.c
  94. diffcore.h
  95. dir.c
  96. dir.h
  97. editor.c
  98. entry.c
  99. environment.c
  100. exec_cmd.c
  101. exec_cmd.h
  102. fast-import.c
  103. fetch-pack.h
  104. fixup-builtins
  105. fmt-merge-msg.h
  106. fsck.c
  107. fsck.h
  108. generate-cmdlist.sh
  109. gettext.c
  110. gettext.h
  111. git-add--interactive.perl
  112. git-am.sh
  113. git-archimport.perl
  114. git-bisect.sh
  115. git-compat-util.h
  116. git-cvsexportcommit.perl
  117. git-cvsimport.perl
  118. git-cvsserver.perl
  119. git-difftool--helper.sh
  120. git-difftool.perl
  121. git-filter-branch.sh
  122. git-instaweb.sh
  123. git-lost-found.sh
  124. git-merge-octopus.sh
  125. git-merge-one-file.sh
  126. git-merge-resolve.sh
  127. git-mergetool--lib.sh
  128. git-mergetool.sh
  129. git-p4.py
  130. git-parse-remote.sh
  131. git-pull.sh
  132. git-quiltimport.sh
  133. git-rebase--am.sh
  134. git-rebase--interactive.sh
  135. git-rebase--merge.sh
  136. git-rebase.sh
  137. git-relink.perl
  138. git-remote-testgit.py
  139. git-repack.sh
  140. git-request-pull.sh
  141. git-send-email.perl
  142. git-sh-i18n.sh
  143. git-sh-setup.sh
  144. git-stash.sh
  145. git-submodule.sh
  146. git-svn.perl
  147. GIT-VERSION-GEN
  148. git-web--browse.sh
  149. git.c
  150. git.spec.in
  151. gpg-interface.c
  152. gpg-interface.h
  153. graph.c
  154. graph.h
  155. grep.c
  156. grep.h
  157. hash.c
  158. hash.h
  159. help.c
  160. help.h
  161. hex.c
  162. http-backend.c
  163. http-fetch.c
  164. http-push.c
  165. http-walker.c
  166. http.c
  167. http.h
  168. ident.c
  169. imap-send.c
  170. INSTALL
  171. kwset.c
  172. kwset.h
  173. levenshtein.c
  174. levenshtein.h
  175. LGPL-2.1
  176. list-objects.c
  177. list-objects.h
  178. ll-merge.c
  179. ll-merge.h
  180. lockfile.c
  181. log-tree.c
  182. log-tree.h
  183. mailmap.c
  184. mailmap.h
  185. Makefile
  186. match-trees.c
  187. merge-file.c
  188. merge-file.h
  189. merge-recursive.c
  190. merge-recursive.h
  191. merge.c
  192. mergesort.c
  193. mergesort.h
  194. name-hash.c
  195. notes-cache.c
  196. notes-cache.h
  197. notes-merge.c
  198. notes-merge.h
  199. notes.c
  200. notes.h
  201. object.c
  202. object.h
  203. pack-check.c
  204. pack-refs.c
  205. pack-refs.h
  206. pack-revindex.c
  207. pack-revindex.h
  208. pack-write.c
  209. pack.h
  210. pager.c
  211. parse-options-cb.c
  212. parse-options.c
  213. parse-options.h
  214. patch-delta.c
  215. patch-ids.c
  216. patch-ids.h
  217. path.c
  218. pkt-line.c
  219. pkt-line.h
  220. preload-index.c
  221. pretty.c
  222. progress.c
  223. progress.h
  224. prompt.c
  225. prompt.h
  226. quote.c
  227. quote.h
  228. reachable.c
  229. reachable.h
  230. read-cache.c
  231. README
  232. reflog-walk.c
  233. reflog-walk.h
  234. refs.c
  235. refs.h
  236. remote-curl.c
  237. remote-testsvn.c
  238. remote.c
  239. remote.h
  240. replace_object.c
  241. rerere.c
  242. rerere.h
  243. resolve-undo.c
  244. resolve-undo.h
  245. revision.c
  246. revision.h
  247. run-command.c
  248. run-command.h
  249. send-pack.c
  250. send-pack.h
  251. sequencer.c
  252. sequencer.h
  253. server-info.c
  254. setup.c
  255. sh-i18n--envsubst.c
  256. sha1-array.c
  257. sha1-array.h
  258. sha1-lookup.c
  259. sha1-lookup.h
  260. sha1_file.c
  261. sha1_name.c
  262. shallow.c
  263. shell.c
  264. shortlog.h
  265. show-index.c
  266. sideband.c
  267. sideband.h
  268. sigchain.c
  269. sigchain.h
  270. strbuf.c
  271. strbuf.h
  272. streaming.c
  273. streaming.h
  274. string-list.c
  275. string-list.h
  276. submodule.c
  277. submodule.h
  278. symlinks.c
  279. tag.c
  280. tag.h
  281. tar.h
  282. test-chmtime.c
  283. test-ctype.c
  284. test-date.c
  285. test-delta.c
  286. test-dump-cache-tree.c
  287. test-genrandom.c
  288. test-index-version.c
  289. test-line-buffer.c
  290. test-match-trees.c
  291. test-mergesort.c
  292. test-mktemp.c
  293. test-parse-options.c
  294. test-path-utils.c
  295. test-regex.c
  296. test-revision-walking.c
  297. test-run-command.c
  298. test-scrap-cache-tree.c
  299. test-sha1.c
  300. test-sha1.sh
  301. test-sigchain.c
  302. test-string-list.c
  303. test-subprocess.c
  304. test-svn-fe.c
  305. thread-utils.c
  306. thread-utils.h
  307. trace.c
  308. transport-helper.c
  309. transport.c
  310. transport.h
  311. tree-diff.c
  312. tree-walk.c
  313. tree-walk.h
  314. tree.c
  315. tree.h
  316. unimplemented.sh
  317. unix-socket.c
  318. unix-socket.h
  319. unpack-trees.c
  320. unpack-trees.h
  321. upload-pack.c
  322. url.c
  323. url.h
  324. usage.c
  325. userdiff.c
  326. userdiff.h
  327. utf8.c
  328. utf8.h
  329. varint.c
  330. varint.h
  331. version.c
  332. version.h
  333. walker.c
  334. walker.h
  335. wrap-for-bin.sh
  336. wrapper.c
  337. write_or_die.c
  338. ws.c
  339. wt-status.c
  340. wt-status.h
  341. xdiff-interface.c
  342. xdiff-interface.h
  343. zlib.c