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

Re: xfuncname problems with C++

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jan 2, 2015, 20:19 UTC
Message-ID
<20150102201959.GG29365@google.com>
In-Reply-To
<CAHd499Cn8C51i_+Dm4h_U4X_Jc-nhNMjoufiZRdn5LGxFqD_HA@mail.gmail.com>
Hi,
Robert Dailey wrote:
Show 17 quoted lines
> I have a function like so:
>
> void MyClass::SomeFunction(int someParameter)
> {
>     // Stuff changed in here
> }
>
> When I do `git diff` on the file containing this function, I get a
> chunk showing some changed code in this function somewhere in the
> middle of the body. However, the chunk header shows my root namespace
> name in the file instead of the function header:
>
> @@ -144,15 +149,22 @@ namespace Utils
>
> What I expect to see:
>
> @@ -144,15 +149,22 @@ void MyClass::SomeFunction(int someParameter)

What version of git are you using? Could you give a full copy of the diff so we can have more context (feeling free to mark parts of it as CENSORED where appropriate, but keeping leading whitespace and the first +/- column)?

Thanks, Jonathan

Previous: Jonathan NiederNext: Johannes Sixt
Message 6 of 7 in “xfuncname problems with C++”
  1. Robert DaileyJan 2, 2015
  2. Robert DaileyJan 2, 2015
  3. Johannes SixtJan 2, 2015
  4. Robert DaileyJan 2, 2015
  5. Jonathan NiederJan 2, 2015
  6. Jonathan NiederJan 2, 2015
  7. Johannes SixtJan 2, 2015

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.