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

Re: [PATCH] Test "git log --diff-filter"

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 7, 2008, 00:31 UTC
Message-ID
<200801070131.57722.jnareb@gmail.com>
In-Reply-To
<7vmyrj7kq5.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
Show 8 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
> 
> > My test checks all --diff-filter filters relevant to git-diff-tree,
> > i.e. ADMRCBT, and not only AMD.
> 
> Ah, I see.  Thanks --- that could have been stated in the log
> message.  Maybe we would want to add them to existing test
> script, instead of adding a whole new one?

The test as it stands now checks if --diff-filter select appropriate revisions, even without patch output. I think it is enough, as I don't see how we could screw up to filter AMD correctly, and not all others... ...perhaps with exception of pair breaking, and how they are filtered using --diff-filter=M and --diff-filter=B; but this impression might be caused by the fact that pair breaking is the only one which doesn't use symbol ('B') in raw diff format output.

Show 7 quoted lines
> > P.S. By the way, it is IMHO a bit strange that --pretty=oneline uses
> > newline as a terminator (it means that there is a newline at the end of
> > "git log --pretty=oneline), while --pretty="format:%s" uses newline as
> > a separator...
> 
> Yeah, I tend to agree, although I learned to live with it long
> time ago.

IMHO that is design bug. Perhaps it should be changed? This way, at least conceptually oneline, short, medium, full, fuller, email formats might be considered simply pre-defined format:<sth> formats.

Am I mistaken in thinking that the rest of git always use terminators, and not separators for records output?

-- 
Jakub Narebski
Poland
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 9 in “Fix "git log --diff-filter" bug”
  1. Fix "git log --diff-filter" bugArjen Laarhoven, Dec 25, 2007
  2. Jakub NarebskiDec 25, 2007
  3. Junio C HamanoDec 26, 2007
  4. Test "git log --diff-filter"Jakub Narebski, Jan 5, 2008
  5. Junio C HamanoJan 5, 2008
  6. Jakub NarebskiJan 5, 2008
  7. Junio C HamanoJan 6, 2008
  8. Jakub NarebskiJan 7, 2008
  9. Junio C HamanoJan 7, 2008

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.