diff options
author | Adam Spiers <git@adamspiers.org> | 2013-01-06 16:58:13 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-01-06 14:26:38 -0800 |
commit | 368aa52952deb631b38a89837c4abbb00c5261c1 (patch) | |
tree | 9f0095b883dc642e36ec9306bfd7d07f1ed7c474 /git.c | |
parent | 1794e6e0972bec862a29b637e4c4262fa76e97a8 (diff) | |
download | git-368aa52952deb631b38a89837c4abbb00c5261c1.tar.gz |
add git-check-ignore sub-command
This works in a similar manner to git-check-attr.
Thanks to Jeff King and Junio C Hamano for the idea:
http://thread.gmane.org/gmane.comp.version-control.git/108671/focus=108815
Signed-off-by: Adam Spiers <git@adamspiers.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -340,6 +340,7 @@ static void handle_internal_command(int argc, const char **argv) { "bundle", cmd_bundle, RUN_SETUP_GENTLY }, { "cat-file", cmd_cat_file, RUN_SETUP }, { "check-attr", cmd_check_attr, RUN_SETUP }, + { "check-ignore", cmd_check_ignore, RUN_SETUP | NEED_WORK_TREE }, { "check-ref-format", cmd_check_ref_format }, { "checkout", cmd_checkout, RUN_SETUP | NEED_WORK_TREE }, { "checkout-index", cmd_checkout_index, |