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

a slight anomaly in '--unified=0' diff output for one particular commit?

From
RLRay Lehtiniemi <rayl@mail.com>
Date
Feb 2, 2007, 16:19 UTC
Message-ID
<200702020919.31801.rayl@mail.com>
hi all

i get the same output for both these commands in the git repository using v1.5.0-rc3-1-ge4b0e4a.

  # git show --unified=1 9299c4f147bcff603eef187eb04fe38153571d30
  # git show --unified=0 9299c4f147bcff603eef187eb04fe38153571d30

in both cases, i get the following single line of context at the end of the diff:

  glossary.html : glossary.txt sort_glossary.pl

i'm also not sure the numbers in the '@@@' line look correct for the 'unified=0' case...

the context at the top of the diff behaves as expected. i checked a few other commits (merge and non-merge types), and they all behaved perfectly with both unified settings. it's just this one commit that seems funny when using --unified=0

can anyone reproduce?
ray
Next: Junio C Hamano
Message 1 of 3 in “a slight anomaly in '--unified=0' diff output for one particular commit?”
  1. Ray LehtiniemiFeb 2, 2007
  2. Junio C HamanoFeb 3, 2007
  3. Enhanced diff options for gitk (Re: --unified=0)Ray Lehtiniemi, Feb 3, 2007

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.