summaryrefslogtreecommitdiff
path: root/Documentation/git-mktag.txt
diff options
context:
space:
mode:
authorLibravatar Brandon Casey <casey@nrlssc.navy.mil>2008-10-01 14:28:26 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2008-10-02 18:45:53 -0700
commita5a5a04863036678919705979b9c0f3579fa3710 (patch)
tree0b077dbc0568d56d30ac726f9f8552be25a8e119 /Documentation/git-mktag.txt
parenttests: add a testcase for "git submodule sync" (diff)
downloadtgif-a5a5a04863036678919705979b9c0f3579fa3710.tar.xz
xdiff-interface.c: strip newline (and cr) from line before pattern matching
POSIX doth sayeth: "In the regular expression processing described in IEEE Std 1003.1-2001, the <newline> is regarded as an ordinary character and both a period and a non-matching list can match one. ... Those utilities (like grep) that do not allow <newline>s to match are responsible for eliminating any <newline> from strings before matching against the RE." Thus far git has not been removing the trailing newline from strings matched against regular expression patterns. This has the effect that (quoting Jonathan del Strother) "... a line containing just 'FUNCNAME' (terminated by a newline) will be matched by the pattern '^(FUNCNAME.$)' but not '^(FUNCNAME$)'", and more simply not '^FUNCNAME$'. Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'Documentation/git-mktag.txt')
0 files changed, 0 insertions, 0 deletions