author | Christian Couder <chriscool@tuxfamily.org> | |
Sat, 26 Apr 2008 13:19:29 +0000 (15:19 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 27 Apr 2008 20:19:46 +0000 (13:19 -0700) | ||
commit | 75ecfce39703e15a9f3d812faa4eb039935c8962 | |
tree | 6d69d31b281540dbb987d7e3724e6562a4477a25 | tree | snapshot |
parent | 498a6e7eaaa8d2641f7cc343e1557e1502437b33 | commit | diff |
rev-parse: fix --verify to error out when passed junk after a good rev
Before this patch something like:
$ git rev-parse --verify <good-rev> <junk>
worked whatever junk was as long as <good-rev> could be parsed
correctly.
This patch makes "git rev-parse --verify" error out when passed
any junk after a good rev.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Before this patch something like:
$ git rev-parse --verify <good-rev> <junk>
worked whatever junk was as long as <good-rev> could be parsed
correctly.
This patch makes "git rev-parse --verify" error out when passed
any junk after a good rev.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rev-parse.c | diff | blob | history |