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

git log history simplification problem

From
MVMiklos Vajna <vmiklos@collabora.co.uk>
Date
Feb 4, 2014, 17:37 UTC
Message-ID
<20140204173713.GC17861@collabora.co.uk>
Hi,

I was trying to understand the history of a piece of code in LibreOffice and I'm facing a behaviour of git-log which is not something I can explain. I'm not sure if this is a git bug or a user error. ;)

Here is the situation:

git clone git://anongit.freedesktop.org/libreoffice/core cd core git log --full-history -p -S'mnTitleBarHeight =' sd/source/ui/dlg/PaneDockingWindow.cxx

Here the first output I get from git-log is b390fae1706b9c511158a03e4fd61f263be4e511, where you can see that the commit *added* that string. So it should be there on master, I would assume.

But then I run:
git grep 'mnTitleBarHeight =' sd

and it's not there. Am I missing something, as in e.g. even with --full-history git-log does some simplification?

Thanks,
Miklos
Next: Miklos Vajna
Message 1 of 5 in “git log history simplification problem”
  1. Miklos VajnaFeb 4, 2014
  2. Miklos VajnaFeb 4, 2014
  3. Jonathan NiederFeb 4, 2014
  4. Miklos VajnaFeb 4, 2014
  5. Junio C HamanoFeb 4, 2014

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.