Skip to content

Commit 3ada78d

Browse files
nasamuffingitster
authored andcommitted
myfirstcontrib: add dependency installation step
Indicate that the user needs some dependencies before the build will run happily on their machine; this dependency list doesn't seem to be made clear anywhere else in the project documentation. Then, so the user can be certain any build failures are due to their code and not their environment, perform a build on a clean checkout of 'master'. Also, move the note about build parallelization up here, so that it appears next to the very first build invocation in the tutorial. Reported-by: Heba Waly <heba.waly@gmail.com> Signed-off-by: Emily Shaffer <emilyshaffer@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4ed5562 commit 3ada78d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

Documentation/MyFirstContribution.txt

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ $ git clone https://github.com/git/git git
3838
$ cd git
3939
----
4040

41+
[[dependencies]]
42+
=== Installing Dependencies
43+
44+
To build Git from source, you need to have a handful of dependencies installed
45+
on your system. For a hint of what's needed, you can take a look at
46+
`INSTALL`, paying close attention to the section about Git's dependencies on
47+
external programs and libraries. That document mentions a way to "test-drive"
48+
our freshly built Git without installing; that's the method we'll be using in
49+
this tutorial.
50+
51+
Make sure that your environment has everything you need by building your brand
52+
new clone of Git from the above step:
53+
54+
----
55+
$ make
56+
----
57+
58+
NOTE: The Git build is parallelizable. `-j#` is not included above but you can
59+
use it as you prefer, here and elsewhere.
60+
4161
[[identify-problem]]
4262
=== Identify Problem to Solve
4363

@@ -138,9 +158,6 @@ NOTE: When you are developing the Git project, it's preferred that you use the
138158
`DEVELOPER` flag; if there's some reason it doesn't work for you, you can turn
139159
it off, but it's a good idea to mention the problem to the mailing list.
140160

141-
NOTE: The Git build is parallelizable. `-j#` is not included above but you can
142-
use it as you prefer, here and elsewhere.
143-
144161
Great, now your new command builds happily on its own. But nobody invokes it.
145162
Let's change that.
146163

0 commit comments

Comments
 (0)