summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-01-24 02:51:56 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-01-24 02:51:56 (GMT)
commit0d583ff02d1a6551863acf3bf87e6f19eef8c5ab (patch)
treecabf50f832627c1e36f726f7c5182a66258fe930 /builtin
parent02bdc9d9f6ef6ae2f304121a0cf169f7c50f2370 (diff)
downloadgit-0d583ff02d1a6551863acf3bf87e6f19eef8c5ab.zip
git-0d583ff02d1a6551863acf3bf87e6f19eef8c5ab.tar.gz
git-0d583ff02d1a6551863acf3bf87e6f19eef8c5ab.tar.bz2
show-ref: remove a stale comment
When cf0adba788 ("Store peeled refs in packed-refs file.", 2006-11-19) made the command to die with a message on error even when --quiet is passed, it left the comment to say it changed the semantics. But that kind of information belongs to the log message, not in-code comment. Besides, the behaviour after the change has been the established one for the past 10 years ;-) Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/show-ref.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/builtin/show-ref.c b/builtin/show-ref.c
index 2dfcb56..013d241 100644
--- a/builtin/show-ref.c
+++ b/builtin/show-ref.c
@@ -22,10 +22,6 @@ static void show_one(const char *refname, const struct object_id *oid)
const char *hex;
struct object_id peeled;
- /* This changes the semantics slightly that even under quiet we
- * detect and return error if the repository is corrupt and
- * ref points at a nonexistent object.
- */
if (!has_sha1_file(oid->hash))
die("git show-ref: bad ref %s (%s)", refname,
oid_to_hex(oid));