@matheusbsbs / matheus-bagliano / commits / abea85d1e9
Fork 0

core-tutorial.txt: Fix showing the current behaviour.

The --root option from "git diff-tree" won't do nothing when is given to commands like git-whatchanged or git-log, because those always print the initial commit by default. This fixes the tutorial explaining the function of the log.showroot configuration variable. Signed-off-by: Carlos Rica <jasampler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Carlos Rica committed Apr 10, 2008 at 02:08 UTC abea85d1e9ee0bd77e41e934534aa5d5cdd0593a
1 file changed +6 -6
Documentation/core-tutorial.txt
+6 -6
@@ -535,18 +535,18 @@ with the associated patches use the more complex (and much more
535 powerful)
536
537 ----------------
538 -$ git-whatchanged -p --root
538 +$ git-whatchanged -p
539 ----------------
540
541 and you will see exactly what has changed in the repository over its
542 short history.
543
544 [NOTE]
545 -The `\--root` flag is a flag to `git-diff-tree` to tell it to
546 -show the initial aka 'root' commit too. Normally you'd probably not
547 -want to see the initial import diff, but since the tutorial project
548 -was started from scratch and is so small, we use it to make the result
549 -a bit more interesting.
545 +When using the above two commands, the initial commit will be shown.
546 +If this is a problem because it is huge, you can hide it by setting
547 +the log.showroot configuration variable to false. Having this, you
548 +can still show it for each command just adding the `\--root` option,
549 +which is a flag for `git-diff-tree` accepted by both commands.
550
551 With that, you should now be having some inkling of what git does, and
552 can explore on your own.