]> Kevux Git Server - rit/commit
docs: clarify cmd_psuh signature and explain UNUSED macro
authorK Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Sun, 18 May 2025 07:43:16 +0000 (13:13 +0530)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 May 2025 17:52:24 +0000 (10:52 -0700)
commita1dcf6b2897e34b684249e6a823221a063ae3910
treee423ad5a2e8dc4d7f852b9b105e1a7bfee4663af
parent3749b8a795347443286bb7c1d36489ea14b1f03f
docs: clarify cmd_psuh signature and explain UNUSED macro

The sample program, as written, would no longer build for at least two
reasons:

 - Since this document was first written, the convention to call a
   subcommand implementation has changed, and cmd_psuh() now needs
   to accept the fourth parameter, repository.

 - These days, compiler warning options for developers include one
   that detects and complains about unused parameters, so ones that
   are deliberately unused have to be marked as such.

Update the old-style examples to adjust to the current practices,
with explanations as needed.

Signed-off-by: K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/MyFirstContribution.adoc