Skip to content

Commit 6b79a21

Browse files
initialcommit-iogitster
authored andcommitted
Include gettext.h in MyFirstContribution tutorial
The tutorial in Documentation/MyFirstContribution.txt has steps to print some text using the "_" function. However, this leads to compiler errors when running "make" since "gettext.h" is not #included. Update docs with a note to #include "gettext.h" in "builtin/psuh.c". Signed-off-by: Jacob Stopak <[email protected]> Reviewed-by: Emily Shaffer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 43c8a30 commit 6b79a21

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Documentation/MyFirstContribution.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,11 @@ in order to keep the declarations alphabetically sorted:
160160
int cmd_psuh(int argc, const char **argv, const char *prefix);
161161
----
162162

163-
Be sure to `#include "builtin.h"` in your `psuh.c`.
163+
Be sure to `#include "builtin.h"` in your `psuh.c`. You'll also need to
164+
`#include "gettext.h"` to use functions related to printing output text.
164165

165-
Go ahead and add some throwaway printf to that function. This is a decent
166-
starting point as we can now add build rules and register the command.
166+
Go ahead and add some throwaway printf to the `cmd_psuh` function. This is a
167+
decent starting point as we can now add build rules and register the command.
167168

168169
NOTE: Your throwaway text, as well as much of the text you will be adding over
169170
the course of this tutorial, is user-facing. That means it needs to be

0 commit comments

Comments
 (0)