diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-12-15 16:02:54 +0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2010-12-16 13:11:42 -0800 |
| commit | 4322842acfaace812308f8aec0fe39a358f3c6f2 (patch) | |
| tree | 31cb3e55eccfa2f4aa3d58985866a3870f85faf0 /diff.c | |
| parent | get_sha1: support $commit^{/regex} syntax (diff) | |
| download | git-4322842acfaace812308f8aec0fe39a358f3c6f2.tar.gz git-4322842acfaace812308f8aec0fe39a358f3c6f2.zip | |
get_sha1: handle special case $commit^{/}
Empty regex pattern should always match. But the exact behavior of
regexec() may vary. Because it always matches anyway, we can just
return 'matched' without calling regex machinery.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions
