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

inconsistent logs when displayed on screen / piped to a file

From
MMMojca Miklavec <mojca.miklavec.lists@gmail.com>
Date
Jul 30, 2012, 12:25 UTC
Message-ID
<CALBOmsYh5AgpRQe28yUcChqemQ7HFMHahesGj_MPwQXDF-EM=Q@mail.gmail.com>
Hello,

I'm trying to use "git log" to generate ChangeLog for a project recently migrated from CVS.

The problem is that
    git log --summary --stat --no-merges --date=short --decorate=short
behaves differently when the result is displayed on screen and when it
is piped to a file.
For example, running the commands:
    a) git log --summary --stat --no-merges --date=short
--decorate=short e9f65aa976
    b) git log --summary --stat --no-merges --date=short
--decorate=short e9f65aa976 > /tmp/log.txt
would result in two different outputs:
a)
 aquaterm/Docs/gptProtocol.rtf                         |  316
++++++++++++++++++++++++++
 aquaterm/English.lproj/GPTInfoWindow.nib/classes.nib  |   12 +
 aquaterm/English.lproj/GPTInfoWindow.nib/info.nib     |   12 +
 aquaterm/English.lproj/GPTInfoWindow.nib/objects.nib  |  Bin 0 -> 1010 bytes
 aquaterm/English.lproj/GPTInfoWindow~.nib/classes.nib |    4 +
 aquaterm/English.lproj/GPTInfoWindow~.nib/info.nib    |   12 +
 aquaterm/English.lproj/GPTInfoWindow~.nib/objects.nib |  Bin 0 -> 1232 bytes
 aquaterm/English.lproj/GPTWindow.nib/classes.nib      |   13 ++
 aquaterm/English.lproj/GPTWindow.nib/info.nib         |   12 +
b)
 aquaterm/Docs/gptProtocol.rtf                      |  316 ++++++
 .../English.lproj/GPTInfoWindow.nib/classes.nib    |   12 +
 aquaterm/English.lproj/GPTInfoWindow.nib/info.nib  |   12 +
 .../English.lproj/GPTInfoWindow.nib/objects.nib    |  Bin 0 -> 1010 bytes
 .../English.lproj/GPTInfoWindow~.nib/classes.nib   |    4 +
 aquaterm/English.lproj/GPTInfoWindow~.nib/info.nib |   12 +
 .../English.lproj/GPTInfoWindow~.nib/objects.nib   |  Bin 0 -> 1232 bytes
 aquaterm/English.lproj/GPTWindow.nib/classes.nib   |   13 +
 aquaterm/English.lproj/GPTWindow.nib/info.nib      |   12 +
The project where the results could be easily reproduced is the following:
    https://github.com/AquaTerm/AquaTerm
    git://github.com/AquaTerm/AquaTerm.git

It is possible that I screwed up something when importing the project from CVS. In that case I would be happy if someone could point me out what exactly I did wrong, and I can still rewrite the history before the first release of the project using git.

But in any case I find it weird that I get two different outputs.
I would be grateful for any clues or hints about what goes wrong.
Mojca
Next: Michael J Gruber
Message 1 of 5 in “inconsistent logs when displayed on screen / piped to a file”
  1. Mojca MiklavecJul 30, 2012
  2. Michael J GruberJul 30, 2012
  3. Carlos Martín NietoJul 30, 2012
  4. Mojca MiklavecJul 30, 2012
  5. Jan EngelhardtJul 31, 2012

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.