diff options
author | Rob Rix <rob.rix@github.com> | 2014-06-12 14:19:34 -0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2014-08-08 15:19:16 -0700 |
commit | bbe13802b7f85343d3db1aeb799662ee11461e6b (patch) | |
tree | b39e118546923dc2db7c5ada929caa016c36a7cd /tests/merge/merge_helpers.h | |
parent | a0cacc82d5bd3ba6b0240f5e3a7e926e977d3535 (diff) | |
download | libgit2-rb/fix-ignore-slash-star.tar.gz |
Demonstrate a trailing slash failure.rb/fix-ignore-slash-star
`git help ignore` has this to say about trailing slashes:
> If the pattern ends with a slash, it is removed for the purpose of
> the following description, but it would only find a match with a
> directory. In other words, foo/ will match a directory foo and
> paths underneath it, but will not match a regular file or a
> symbolic link foo (this is consistent with the way how pathspec
> works in general in Git).
Sure enough, having manually performed the same steps as this test,
`git status` tells us the following:
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: force.txt
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# ../.gitignore
# child1/
# child2/
i.e. neither child1 nor child2 is ignored.
Diffstat (limited to 'tests/merge/merge_helpers.h')
0 files changed, 0 insertions, 0 deletions