Skip to content

Commit 3bf97e1

Browse files
Martin Ågrengitster
authored andcommitted
MyFirstObjectWalk: drop init_walken_defaults()
In a recent commit, we stopped calling `init_grep_defaults()` from this function. Thus, by the end of the tutorial, we still haven't added any contents to this function. Let's remove it for simplicity. Signed-off-by: Martin Ågren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6ba9bb7 commit 3bf97e1

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Documentation/MyFirstObjectWalk.txt

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -182,30 +182,6 @@ its `init_log_defaults()` sets its own state (`decoration_style`) and asks
182182
`grep` and `diff` to initialize themselves by calling each of their
183183
initialization functions.
184184

185-
For our first example within `git walken`, we don't intend to use any other
186-
components within Git, and we don't have any configuration to do. However, we
187-
may want to add some later, so for now, we can add an empty placeholder. Create
188-
a new function in `builtin/walken.c`:
189-
190-
----
191-
static void init_walken_defaults(void)
192-
{
193-
/*
194-
* We don't actually need the same components `git log` does; leave this
195-
* empty for now.
196-
*/
197-
}
198-
----
199-
200-
Make sure to add a line invoking it inside of `cmd_walken()`.
201-
202-
----
203-
int cmd_walken(int argc, const char **argv, const char *prefix)
204-
{
205-
init_walken_defaults();
206-
}
207-
----
208-
209185
==== Configuring From `.gitconfig`
210186

211187
Next, we should have a look at any relevant configuration settings (i.e.,

0 commit comments

Comments
 (0)