author | Brandon Casey <drafnel@gmail.com> | |
Thu, 16 Oct 2008 00:58:50 +0000 (19:58 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 16 Oct 2008 15:31:56 +0000 (08:31 -0700) | ||
commit | b19d288b4d440c76348b519d06a4ed7b62c93611 | |
tree | 98e943295a273e3271faf395f69d1be8e61a7650 | tree | snapshot |
parent | 16b26725368f7b80711d9a631029fbb869646f9c | commit | diff |
t4018-diff-funcname: demonstrate end of line funcname matching flaw
Since the newline is not removed from lines before pattern matching, a
pattern cannot match to the end of the line using the '$' operator without
using an additional operator which will indirectly match the '\n' character.
Introduce a test which should pass, but which does not due to this flaw.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Since the newline is not removed from lines before pattern matching, a
pattern cannot match to the end of the line using the '$' operator without
using an additional operator which will indirectly match the '\n' character.
Introduce a test which should pass, but which does not due to this flaw.
Signed-off-by: Brandon Casey <drafnel@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4018-diff-funcname.sh | diff | blob | history |