Skip to content

Commit 0d583ff

Browse files
committed
show-ref: remove a stale comment
When cf0adba ("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 <[email protected]>
1 parent 02bdc9d commit 0d583ff

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

builtin/show-ref.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ static void show_one(const char *refname, const struct object_id *oid)
2222
const char *hex;
2323
struct object_id peeled;
2424

25-
/* This changes the semantics slightly that even under quiet we
26-
* detect and return error if the repository is corrupt and
27-
* ref points at a nonexistent object.
28-
*/
2925
if (!has_sha1_file(oid->hash))
3026
die("git show-ref: bad ref %s (%s)", refname,
3127
oid_to_hex(oid));

0 commit comments

Comments
 (0)