git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-log produces no output

From
BPBob 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 
Next: Linus Torvalds
Message 1 of 10 in “git-log produces no output”
  1. Bob PortmannApr 21, 2006
  2. Linus TorvaldsApr 21, 2006
  3. Bob PortmannApr 21, 2006
  4. Paolo CiarrocchiApr 21, 2006
  5. Bob PortmannApr 21, 2006
  6. Linus TorvaldsApr 21, 2006
  7. Linus TorvaldsApr 21, 2006
  8. Bob PortmannApr 21, 2006
  9. Junio C HamanoApr 21, 2006
  10. Linus TorvaldsApr 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.