Prevent bogus paths from being added to the index.

With this one, it's now a fatal error to try to add a pathname
that cannot be added with "git add", i.e.

	[torvalds@g5 git]$ git add .git/config
	fatal: unable to add .git/config to index

and

	[torvalds@g5 git]$ git add foo/../bar
	fatal: unable to add foo/../bar to index

instead of the old "Ignoring path xyz" warning that would end up
silently succeeding on any other paths.

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