You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit improves the `cmd_psuh` documentation example by:
Correcting the function signature to include struct repository *repo.
Makes the signature accurate and consistent with typical Git built-in
commands.
Removing the `UNUSED` macros from the `cmd_psuh` function arguments
(argc, argv, prefix, repo). This is done because the example now
uses these arguments.
Showing how to access the repository's Git directory (repo->gitdir)
within the cmd_psuh function. This provides a practical example of
how to use the repo argument and repository-related information.
Keeps your existing printf() calls in place.
This lets the users see the arguments which is given to the function.
This enhanced example provides a more complete illustration of
Adding a Git built-in command and use the repository argument.
Signed-off-by: K Jayatheerth <[email protected]>
0 commit comments