diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-08-30 16:52:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-08-30 16:52:17 -0700 |
commit | 0241d05c0ebac641b26dfd1e430cb6d275c3acb7 (patch) | |
tree | cbf70952cde4640662dd542b8d0fdaef607a6099 /gitcore-tutorial.txt | |
parent | 683a86135b5ed57740264f0d8f8e59dbd7305d47 (diff) | |
download | git-htmldocs-0241d05c0ebac641b26dfd1e430cb6d275c3acb7.tar.gz |
Autogenerated HTML docs for v1.8.4-21-g992c3
Diffstat (limited to 'gitcore-tutorial.txt')
-rw-r--r-- | gitcore-tutorial.txt | 39 |
1 files changed, 3 insertions, 36 deletions
diff --git a/gitcore-tutorial.txt b/gitcore-tutorial.txt index f538a870c..058a35298 100644 --- a/gitcore-tutorial.txt +++ b/gitcore-tutorial.txt @@ -534,42 +534,9 @@ all, but just show the actual commit message. In fact, together with the 'git rev-list' program (which generates a list of revisions), 'git diff-tree' ends up being a veritable fount of -changes. A trivial (but very useful) script called 'git whatchanged' is -included with Git which does exactly this, and shows a log of recent -activities. - -To see the whole history of our pitiful little git-tutorial project, you -can do - ----------------- -$ git log ----------------- - -which shows just the log messages, or if we want to see the log together -with the associated patches use the more complex (and much more -powerful) - ----------------- -$ git whatchanged -p ----------------- - -and you will see exactly what has changed in the repository over its -short history. - -[NOTE] -When using the above two commands, the initial commit will be shown. -If this is a problem because it is huge, you can hide it by setting -the log.showroot configuration variable to false. Having this, you -can still show it for each command just adding the `--root` option, -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 -can explore on your own. - -[NOTE] -Most likely, you are not directly using the core -Git Plumbing commands, but using Porcelain such as 'git add', `git-rm' -and `git-commit'. +changes. You can emulate `git log`, `git log -p`, etc. with a trivial +script that pipes the output of `git rev-list` to `git diff-tree --stdin`, +which was exactly how early versions of `git log` were implemented. Tagging a version |