зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
ac7fa2776c
Коммит
abea85d1e9
|
@ -535,18 +535,18 @@ with the associated patches use the more complex (and much more
|
||||||
powerful)
|
powerful)
|
||||||
|
|
||||||
----------------
|
----------------
|
||||||
$ git-whatchanged -p --root
|
$ git-whatchanged -p
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
and you will see exactly what has changed in the repository over its
|
and you will see exactly what has changed in the repository over its
|
||||||
short history.
|
short history.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
The `\--root` flag is a flag to `git-diff-tree` to tell it to
|
When using the above two commands, the initial commit will be shown.
|
||||||
show the initial aka 'root' commit too. Normally you'd probably not
|
If this is a problem because it is huge, you can hide it by setting
|
||||||
want to see the initial import diff, but since the tutorial project
|
the log.showroot configuration variable to false. Having this, you
|
||||||
was started from scratch and is so small, we use it to make the result
|
can still show it for each command just adding the `\--root` option,
|
||||||
a bit more interesting.
|
which is a flag for `git-diff-tree` accepted by both commands.
|
||||||
|
|
||||||
With that, you should now be having some inkling of what git does, and
|
With that, you should now be having some inkling of what git does, and
|
||||||
can explore on your own.
|
can explore on your own.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче