Move color option parsing out of diff.c and into color.[ch]

The intent is to lib-ify colorizing code so it can be reused.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
4 files changed
tree: daeaf172c4f6f5bc3a4d289550a2b13c31792f36
  1. arm/
  2. compat/
  3. contrib/
  4. Documentation/
  5. gitweb/
  6. mozilla-sha1/
  7. ppc/
  8. t/
  9. templates/
  10. xdiff/
  11. .gitignore
  12. alloc.c
  13. base85.c
  14. blame.c
  15. blob.c
  16. blob.h
  17. builtin-add.c
  18. builtin-apply.c
  19. builtin-cat-file.c
  20. builtin-check-ref-format.c
  21. builtin-checkout-index.c
  22. builtin-commit-tree.c
  23. builtin-count-objects.c
  24. builtin-diff-files.c
  25. builtin-diff-index.c
  26. builtin-diff-stages.c
  27. builtin-diff-tree.c
  28. builtin-diff.c
  29. builtin-fmt-merge-msg.c
  30. builtin-grep.c
  31. builtin-init-db.c
  32. builtin-log.c
  33. builtin-ls-files.c
  34. builtin-ls-tree.c
  35. builtin-mailinfo.c
  36. builtin-mailsplit.c
  37. builtin-mv.c
  38. builtin-name-rev.c
  39. builtin-pack-objects.c
  40. builtin-prune-packed.c
  41. builtin-prune.c
  42. builtin-push.c
  43. builtin-read-tree.c
  44. builtin-repo-config.c
  45. builtin-rev-list.c
  46. builtin-rev-parse.c
  47. builtin-rm.c
  48. builtin-show-branch.c
  49. builtin-stripspace.c
  50. builtin-symbolic-ref.c
  51. builtin-tar-tree.c
  52. builtin-unpack-objects.c
  53. builtin-update-index.c
  54. builtin-update-ref.c
  55. builtin-upload-tar.c
  56. builtin-verify-pack.c
  57. builtin-write-tree.c
  58. builtin-zip-tree.c
  59. builtin.h
  60. cache-tree.c
  61. cache-tree.h
  62. cache.h
  63. check-racy.c
  64. color.c
  65. color.h
  66. combine-diff.c
  67. commit.c
  68. commit.h
  69. config.c
  70. config.mak.in
  71. configure.ac
  72. connect.c
  73. convert-objects.c
  74. copy.c
  75. COPYING
  76. csum-file.c
  77. csum-file.h
  78. ctype.c
  79. daemon.c
  80. date.c
  81. delta.h
  82. describe.c
  83. diff-delta.c
  84. diff-lib.c
  85. diff.c
  86. diff.h
  87. diffcore-break.c
  88. diffcore-delta.c
  89. diffcore-order.c
  90. diffcore-pickaxe.c
  91. diffcore-rename.c
  92. diffcore.h
  93. dir.c
  94. dir.h
  95. dump-cache-tree.c
  96. entry.c
  97. environment.c
  98. exec_cmd.c
  99. exec_cmd.h
  100. fetch-clone.c
  101. fetch-pack.c
  102. fetch.c
  103. fetch.h
  104. fsck-objects.c
  105. generate-cmdlist.sh
  106. git-am.sh
  107. git-annotate.perl
  108. git-applymbox.sh
  109. git-applypatch.sh
  110. git-archimport.perl
  111. git-bisect.sh
  112. git-branch.sh
  113. git-checkout.sh
  114. git-cherry.sh
  115. git-clean.sh
  116. git-clone.sh
  117. git-commit.sh
  118. git-compat-util.h
  119. git-cvsexportcommit.perl
  120. git-cvsimport.perl
  121. git-cvsserver.perl
  122. git-fetch.sh
  123. git-instaweb.sh
  124. git-lost-found.sh
  125. git-ls-remote.sh
  126. git-merge-octopus.sh
  127. git-merge-one-file.sh
  128. git-merge-ours.sh
  129. git-merge-recursive.py
  130. git-merge-resolve.sh
  131. git-merge-stupid.sh
  132. git-merge.sh
  133. git-p4import.py
  134. git-parse-remote.sh
  135. git-pull.sh
  136. git-quiltimport.sh
  137. git-rebase.sh
  138. git-relink.perl
  139. git-repack.sh
  140. git-request-pull.sh
  141. git-rerere.perl
  142. git-reset.sh
  143. git-resolve.sh
  144. git-revert.sh
  145. git-send-email.perl
  146. git-sh-setup.sh
  147. git-shortlog.perl
  148. git-svn.perl
  149. git-svnimport.perl
  150. git-tag.sh
  151. git-verify-tag.sh
  152. GIT-VERSION-GEN
  153. git.c
  154. git.spec.in
  155. gitk
  156. gitMergeCommon.py
  157. hash-object.c
  158. help.c
  159. http-fetch.c
  160. http-push.c
  161. http.c
  162. http.h
  163. ident.c
  164. imap-send.c
  165. index-pack.c
  166. INSTALL
  167. local-fetch.c
  168. lockfile.c
  169. log-tree.c
  170. log-tree.h
  171. Makefile
  172. merge-base.c
  173. merge-file.c
  174. merge-index.c
  175. merge-recursive.c
  176. merge-tree.c
  177. mktag.c
  178. mktree.c
  179. object-refs.c
  180. object.c
  181. object.h
  182. pack-check.c
  183. pack-redundant.c
  184. pack.h
  185. pager.c
  186. patch-delta.c
  187. patch-id.c
  188. path-list.c
  189. path-list.h
  190. path.c
  191. peek-remote.c
  192. pkt-line.c
  193. pkt-line.h
  194. quote.c
  195. quote.h
  196. read-cache.c
  197. README
  198. receive-pack.c
  199. refs.c
  200. refs.h
  201. revision.c
  202. revision.h
  203. rsh.c
  204. rsh.h
  205. run-command.c
  206. run-command.h
  207. send-pack.c
  208. server-info.c
  209. setup.c
  210. sha1_file.c
  211. sha1_name.c
  212. shell.c
  213. show-index.c
  214. ssh-fetch.c
  215. ssh-pull.c
  216. ssh-push.c
  217. ssh-upload.c
  218. strbuf.c
  219. strbuf.h
  220. tag.c
  221. tag.h
  222. tar.h
  223. test-date.c
  224. test-delta.c
  225. test-sha1.c
  226. test-sha1.sh
  227. trace.c
  228. tree-diff.c
  229. tree-walk.c
  230. tree-walk.h
  231. tree.c
  232. tree.h
  233. unpack-file.c
  234. unpack-trees.c
  235. unpack-trees.h
  236. update-server-info.c
  237. upload-pack.c
  238. usage.c
  239. var.c
  240. write_or_die.c
  241. xdiff-interface.c
  242. xdiff-interface.h