Teach runstatus about --untracked

Actually, teach runstatus what to do if it is not passed; it should not list
the contents of completely untracked directories, but only the name of that
directory (plus a trailing '/').

[jc: with comments by Jeff King to match hide-empty-directories
 behaviour of the original.]

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
4 files changed
tree: 28109bfd381be45f4a37f14413cf44f612c060ac
  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-runstatus.c
  49. builtin-show-branch.c
  50. builtin-stripspace.c
  51. builtin-symbolic-ref.c
  52. builtin-tar-tree.c
  53. builtin-unpack-objects.c
  54. builtin-update-index.c
  55. builtin-update-ref.c
  56. builtin-upload-tar.c
  57. builtin-verify-pack.c
  58. builtin-write-tree.c
  59. builtin-zip-tree.c
  60. builtin.h
  61. cache-tree.c
  62. cache-tree.h
  63. cache.h
  64. check-racy.c
  65. color.c
  66. color.h
  67. combine-diff.c
  68. commit.c
  69. commit.h
  70. config.c
  71. config.mak.in
  72. configure.ac
  73. connect.c
  74. convert-objects.c
  75. copy.c
  76. COPYING
  77. csum-file.c
  78. csum-file.h
  79. ctype.c
  80. daemon.c
  81. date.c
  82. delta.h
  83. describe.c
  84. diff-delta.c
  85. diff-lib.c
  86. diff.c
  87. diff.h
  88. diffcore-break.c
  89. diffcore-delta.c
  90. diffcore-order.c
  91. diffcore-pickaxe.c
  92. diffcore-rename.c
  93. diffcore.h
  94. dir.c
  95. dir.h
  96. dump-cache-tree.c
  97. entry.c
  98. environment.c
  99. exec_cmd.c
  100. exec_cmd.h
  101. fetch-clone.c
  102. fetch-pack.c
  103. fetch.c
  104. fetch.h
  105. fsck-objects.c
  106. generate-cmdlist.sh
  107. git-am.sh
  108. git-annotate.perl
  109. git-applymbox.sh
  110. git-applypatch.sh
  111. git-archimport.perl
  112. git-bisect.sh
  113. git-branch.sh
  114. git-checkout.sh
  115. git-cherry.sh
  116. git-clean.sh
  117. git-clone.sh
  118. git-commit.sh
  119. git-compat-util.h
  120. git-cvsexportcommit.perl
  121. git-cvsimport.perl
  122. git-cvsserver.perl
  123. git-fetch.sh
  124. git-instaweb.sh
  125. git-lost-found.sh
  126. git-ls-remote.sh
  127. git-merge-octopus.sh
  128. git-merge-one-file.sh
  129. git-merge-ours.sh
  130. git-merge-recursive.py
  131. git-merge-resolve.sh
  132. git-merge-stupid.sh
  133. git-merge.sh
  134. git-p4import.py
  135. git-parse-remote.sh
  136. git-pull.sh
  137. git-quiltimport.sh
  138. git-rebase.sh
  139. git-relink.perl
  140. git-repack.sh
  141. git-request-pull.sh
  142. git-rerere.perl
  143. git-reset.sh
  144. git-resolve.sh
  145. git-revert.sh
  146. git-send-email.perl
  147. git-sh-setup.sh
  148. git-shortlog.perl
  149. git-svn.perl
  150. git-svnimport.perl
  151. git-tag.sh
  152. git-verify-tag.sh
  153. GIT-VERSION-GEN
  154. git.c
  155. git.spec.in
  156. gitk
  157. gitMergeCommon.py
  158. hash-object.c
  159. help.c
  160. http-fetch.c
  161. http-push.c
  162. http.c
  163. http.h
  164. ident.c
  165. imap-send.c
  166. index-pack.c
  167. INSTALL
  168. local-fetch.c
  169. lockfile.c
  170. log-tree.c
  171. log-tree.h
  172. Makefile
  173. merge-base.c
  174. merge-file.c
  175. merge-index.c
  176. merge-recursive.c
  177. merge-tree.c
  178. mktag.c
  179. mktree.c
  180. object-refs.c
  181. object.c
  182. object.h
  183. pack-check.c
  184. pack-redundant.c
  185. pack.h
  186. pager.c
  187. patch-delta.c
  188. patch-id.c
  189. path-list.c
  190. path-list.h
  191. path.c
  192. peek-remote.c
  193. pkt-line.c
  194. pkt-line.h
  195. quote.c
  196. quote.h
  197. read-cache.c
  198. README
  199. receive-pack.c
  200. refs.c
  201. refs.h
  202. revision.c
  203. revision.h
  204. rsh.c
  205. rsh.h
  206. run-command.c
  207. run-command.h
  208. send-pack.c
  209. server-info.c
  210. setup.c
  211. sha1_file.c
  212. sha1_name.c
  213. shell.c
  214. show-index.c
  215. ssh-fetch.c
  216. ssh-pull.c
  217. ssh-push.c
  218. ssh-upload.c
  219. strbuf.c
  220. strbuf.h
  221. tag.c
  222. tag.h
  223. tar.h
  224. test-date.c
  225. test-delta.c
  226. test-sha1.c
  227. test-sha1.sh
  228. trace.c
  229. tree-diff.c
  230. tree-walk.c
  231. tree-walk.h
  232. tree.c
  233. tree.h
  234. unpack-file.c
  235. unpack-trees.c
  236. unpack-trees.h
  237. update-server-info.c
  238. upload-pack.c
  239. usage.c
  240. var.c
  241. write_or_die.c
  242. wt-status.c
  243. wt-status.h
  244. xdiff-interface.c
  245. xdiff-interface.h