Add matching and parsing for fetch-side refspec rules

Also exports parse_ref_spec().

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2 files changed
tree: cadf709611fa3493468c77bfabb3bbaa42dd74a6
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. git-gui/
  6. gitweb/
  7. mozilla-sha1/
  8. perl/
  9. ppc/
  10. t/
  11. templates/
  12. xdiff/
  13. .gitignore
  14. .mailmap
  15. alloc.c
  16. archive-tar.c
  17. archive-zip.c
  18. archive.h
  19. attr.c
  20. attr.h
  21. base85.c
  22. blob.c
  23. blob.h
  24. builtin-add.c
  25. builtin-annotate.c
  26. builtin-apply.c
  27. builtin-archive.c
  28. builtin-blame.c
  29. builtin-branch.c
  30. builtin-bundle.c
  31. builtin-cat-file.c
  32. builtin-check-attr.c
  33. builtin-check-ref-format.c
  34. builtin-checkout-index.c
  35. builtin-commit-tree.c
  36. builtin-config.c
  37. builtin-count-objects.c
  38. builtin-describe.c
  39. builtin-diff-files.c
  40. builtin-diff-index.c
  41. builtin-diff-tree.c
  42. builtin-diff.c
  43. builtin-fetch--tool.c
  44. builtin-fetch-pack.c
  45. builtin-fmt-merge-msg.c
  46. builtin-for-each-ref.c
  47. builtin-fsck.c
  48. builtin-gc.c
  49. builtin-grep.c
  50. builtin-http-fetch.c
  51. builtin-init-db.c
  52. builtin-log.c
  53. builtin-ls-files.c
  54. builtin-ls-tree.c
  55. builtin-mailinfo.c
  56. builtin-mailsplit.c
  57. builtin-merge-base.c
  58. builtin-merge-file.c
  59. builtin-mv.c
  60. builtin-name-rev.c
  61. builtin-pack-objects.c
  62. builtin-pack-refs.c
  63. builtin-prune-packed.c
  64. builtin-prune.c
  65. builtin-push.c
  66. builtin-read-tree.c
  67. builtin-reflog.c
  68. builtin-rerere.c
  69. builtin-reset.c
  70. builtin-rev-list.c
  71. builtin-rev-parse.c
  72. builtin-revert.c
  73. builtin-rm.c
  74. builtin-runstatus.c
  75. builtin-shortlog.c
  76. builtin-show-branch.c
  77. builtin-show-ref.c
  78. builtin-stripspace.c
  79. builtin-symbolic-ref.c
  80. builtin-tag.c
  81. builtin-tar-tree.c
  82. builtin-unpack-objects.c
  83. builtin-update-index.c
  84. builtin-update-ref.c
  85. builtin-upload-archive.c
  86. builtin-verify-pack.c
  87. builtin-verify-tag.c
  88. builtin-write-tree.c
  89. builtin.h
  90. cache-tree.c
  91. cache-tree.h
  92. cache.h
  93. check-builtins.sh
  94. check-racy.c
  95. color.c
  96. color.h
  97. combine-diff.c
  98. commit.c
  99. commit.h
  100. config.c
  101. config.mak.in
  102. configure.ac
  103. connect.c
  104. convert-objects.c
  105. convert.c
  106. copy.c
  107. COPYING
  108. csum-file.c
  109. csum-file.h
  110. ctype.c
  111. daemon.c
  112. date.c
  113. decorate.c
  114. decorate.h
  115. delta.h
  116. diff-delta.c
  117. diff-lib.c
  118. diff.c
  119. diff.h
  120. diffcore-break.c
  121. diffcore-delta.c
  122. diffcore-order.c
  123. diffcore-pickaxe.c
  124. diffcore-rename.c
  125. diffcore.h
  126. dir.c
  127. dir.h
  128. dump-cache-tree.c
  129. entry.c
  130. environment.c
  131. exec_cmd.c
  132. exec_cmd.h
  133. fast-import.c
  134. fetch-pack.h
  135. fixup-builtins
  136. generate-cmdlist.sh
  137. git-add--interactive.perl
  138. git-am.sh
  139. git-archimport.perl
  140. git-bisect.sh
  141. git-checkout.sh
  142. git-clean.sh
  143. git-clone.sh
  144. git-commit.sh
  145. git-compat-util.h
  146. git-cvsexportcommit.perl
  147. git-cvsimport.perl
  148. git-cvsserver.perl
  149. git-fetch.sh
  150. git-filter-branch.sh
  151. git-instaweb.sh
  152. git-lost-found.sh
  153. git-ls-remote.sh
  154. git-merge-octopus.sh
  155. git-merge-one-file.sh
  156. git-merge-ours.sh
  157. git-merge-resolve.sh
  158. git-merge-stupid.sh
  159. git-merge.sh
  160. git-mergetool.sh
  161. git-parse-remote.sh
  162. git-pull.sh
  163. git-quiltimport.sh
  164. git-rebase--interactive.sh
  165. git-rebase.sh
  166. git-relink.perl
  167. git-remote.perl
  168. git-repack.sh
  169. git-request-pull.sh
  170. git-send-email.perl
  171. git-sh-setup.sh
  172. git-stash.sh
  173. git-submodule.sh
  174. git-svn.perl
  175. git-svnimport.perl
  176. GIT-VERSION-GEN
  177. git.c
  178. git.spec.in
  179. gitk
  180. grep.c
  181. grep.h
  182. hash-object.c
  183. help.c
  184. http-push.c
  185. http-walker.c
  186. http.c
  187. http.h
  188. ident.c
  189. imap-send.c
  190. index-pack.c
  191. INSTALL
  192. interpolate.c
  193. interpolate.h
  194. list-objects.c
  195. list-objects.h
  196. lockfile.c
  197. log-tree.c
  198. log-tree.h
  199. mailmap.c
  200. mailmap.h
  201. Makefile
  202. match-trees.c
  203. merge-file.c
  204. merge-index.c
  205. merge-recursive.c
  206. merge-tree.c
  207. mktag.c
  208. mktree.c
  209. object-refs.c
  210. object.c
  211. object.h
  212. pack-check.c
  213. pack-redundant.c
  214. pack-write.c
  215. pack.h
  216. pager.c
  217. patch-delta.c
  218. patch-id.c
  219. patch-ids.c
  220. patch-ids.h
  221. path-list.c
  222. path-list.h
  223. path.c
  224. peek-remote.c
  225. pkt-line.c
  226. pkt-line.h
  227. progress.c
  228. progress.h
  229. quote.c
  230. quote.h
  231. reachable.c
  232. reachable.h
  233. read-cache.c
  234. README
  235. receive-pack.c
  236. reflog-walk.c
  237. reflog-walk.h
  238. refs.c
  239. refs.h
  240. remote.c
  241. remote.h
  242. revision.c
  243. revision.h
  244. run-command.c
  245. run-command.h
  246. send-pack.c
  247. server-info.c
  248. setup.c
  249. sha1_file.c
  250. sha1_name.c
  251. shallow.c
  252. shell.c
  253. show-index.c
  254. sideband.c
  255. sideband.h
  256. strbuf.c
  257. strbuf.h
  258. symlinks.c
  259. tag.c
  260. tag.h
  261. tar.h
  262. test-absolute-path.c
  263. test-chmtime.c
  264. test-date.c
  265. test-delta.c
  266. test-genrandom.c
  267. test-match-trees.c
  268. test-sha1.c
  269. test-sha1.sh
  270. trace.c
  271. transport.c
  272. transport.h
  273. tree-diff.c
  274. tree-walk.c
  275. tree-walk.h
  276. tree.c
  277. tree.h
  278. unpack-file.c
  279. unpack-trees.c
  280. unpack-trees.h
  281. update-server-info.c
  282. upload-pack.c
  283. usage.c
  284. utf8.c
  285. utf8.h
  286. var.c
  287. walker.c
  288. walker.h
  289. write_or_die.c
  290. wt-status.c
  291. wt-status.h
  292. xdiff-interface.c
  293. xdiff-interface.h