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
==== https://discord.gg/GRFVkzgxRd[#discord] on Discord
37
-
This is an unofficial Git Discord server for everyone, from people just starting out with Git to those who develop it. It's a great place to ask questions, share tips, and connect with the broader Git community in real time.
The server has channels for general discussions and specific channels for those who use Git and those who develop it. The server's search functionality also allows you to find previous conversations and answers to common questions.
* Because this first example will not use any of the parameters, your compiler will give warnings on unused parameters. As the list of these four parameters is mandated by the API to add new built-in commands, you cannot omit them. Instead, you add `UNUSED` to each of them to tell the compiler that you *know* you are not (yet) using it.
Modify your `cmd_psuh` implementation to dump the args you're passed, keeping existing `printf()` calls in place; because the args are now used, remove the `UNUSED` macro from them:
@@ -249,7 +248,7 @@ Add a line to `#include "config.h"` and `#include "repository.h"`. Then, add the
249
248
printf(_("Your name: %s\n"), cfg_name);
250
249
----
251
250
252
-
`repo_config()` will grab the configuration from config files known to Git and apply standard precedence rules. `repo_config_get_string_tmp()` will look up a specific key ("user.name") and give you the value. There are a number of single-key lookup functions like this one; you can see them all (and more info about how to use `repo_config()`) in `Documentation/technical/api-config.adoc`.
@@ -357,7 +356,7 @@ $ ./bin-wrappers/git help psuh
357
356
358
357
あなたの新しいコマンドは文書化されていません! これを直しましょう。
359
358
360
-
Take a look at `Documentation/git-*.adoc`. These are the manpages for the subcommands that Git knows about. You can open these up and take a look to get acquainted with the format, but then go ahead and make a new file `Documentation/git-psuh.adoc`. Like with most of the documentation in the Git project, help pages are written with AsciiDoc (see CodingGuidelines, "Writing Documentation" section). Use the following template to fill out your own manpage:
Take a look at `Documentation/technical/api-parse-options.adoc`. This is a handy tool for pulling out options you need to be able to handle, and it takes a usage string.
In order to have your code tested and formatted for review, you need to start by opening a Pull Request against either `gitgitgadget/git` or `git/git`. Head to https://github.com/gitgitgadget/git or https://github.com/git/git and open a PR either with the "New pull request" button or the convenient "Compare & pull request" button that may appear with the name of your newly pushed branch.
The differences between using `gitgitgadget/git` and `git/git` as your base can be found [here](https://gitgitgadget.github.io/#should-i-use-gitgitgadget-on-gitgitgadgets-git-fork-or-on-gits-github-mirror)
NOTE: After sending your patches, you can confirm that they reached the mailing list by visiting https://lore.kernel.org/git/. Use the search bar to find your name or the subject of your patch. If it appears, your email was successfully delivered.
0 commit comments