Merge branch 'as/check-ignore' into next
commit9df2afc364c15e712128f754e3a9e2076deb2086
authorJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2013 17:01:24 +0000 (14 09:01 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jan 2013 17:01:26 +0000 (14 09:01 -0800)
tree52199dc9b0bb687325be0dd9dbbf637490861f38
parent41a747c1e7570ee2c81aa526912f443f25df4b11
parent6f53feac95f35d470789348c051f6cee93449642
Merge branch 'as/check-ignore' into next

Add a new command "git check-ignore" for debugging .gitignore
files.

* as/check-ignore:
  t0008: avoid brace expansion
  add git-check-ignore sub-command
  setup.c: document get_pathspec()
  add.c: extract new die_if_path_beyond_symlink() for reuse
  add.c: extract check_path_for_gitlink() from treat_gitlinks() for reuse
  pathspec.c: rename newly public functions for clarity
  add.c: move pathspec matchers into new pathspec.c for reuse
  add.c: remove unused argument from validate_pathspec()
  dir.c: improve docs for match_pathspec() and match_pathspec_depth()
  dir.c: provide clear_directory() for reclaiming dir_struct memory
  dir.c: keep track of where patterns came from
  dir.c: use a single struct exclude_list per source of excludes
14 files changed:
.gitignore
Documentation/gitignore.txt
Makefile
builtin.h
builtin/add.c
builtin/clean.c
builtin/ls-files.c
command-list.txt
contrib/completion/git-completion.bash
dir.c
dir.h
git.c
setup.c
unpack-trees.c