git-log produces no output
- From
- Bob Portmann <bportmann@yahoo.com>
- Date
- Apr 21, 2006, 17:20 UTC
- Message-ID
- <20060421172001.44441.qmail@web60325.mail.yahoo.com>
I am just starting out with git and have a noob question about got-log. I cannot get any output out of it and am wondering if I am using it correctly or it is broken. As I understand it, git-log should just print out the log messages but not the changes, whereas git-whatchanged will print out both. But while git-whatchanged works, git-log never does. I have a trivial example below which shows what I mean. But I get the same result using my real archives and out of git.git as well.
Thanks, Bob
PS I'm using git 1.3.0 and have tried this on both Mac OS X and Linux with the same results.
Trivial example: git-test> mkdir test-log git-test> cd test-log test-log> git-init-db defaulting to local storage area test-log> echo "Hello World" >hello test-log> git add . test-log> git commit -a -m 'One line hello' Committing initial tree 117c62a8c5e01758bd284126a6af69deab9dbbe2 test-log> echo "Hello World 2" >>hello test-log> git commit -a -m 'Two line hello' test-log> git whatchanged -p diff-tree 9a4d7602fff052b6796c2862edddd11ae2e45d08 (from a38306518c5e5e8eb630c02Author: Bob Portmann <portmann@xxxx.xx.xx> Date: Fri Apr 21 10:56:11 2006 -0600
Two line hello
diff --git a/hello b/hello index 557db03..514e5c5 100644 --- a/hello +++ b/hello @@ -1 +1,2 @@ Hello World +Hello World 2 test-log> git log test-log> As you can see git log produces no output. I've tried it with other options with the same result. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com