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

Re: Forgotten declaration of function path_name() in revision.h?

From
Jeff King <peff@peff.net>
Date
Mar 16, 2016, 18:48 UTC
Message-ID
<20160316184853.GA32615@sigill.intra.peff.net>
In-Reply-To
<56E9A07D.3080508@redhat.com>
On Wed, Mar 16, 2016 at 07:05:49PM +0100, Petr Stodulka wrote:
> according to commit 9831e92 (merge) there is maybe by mistake kept declaration
> of function path_name() in revision.h, whose definition was removed
> and isn't used in git anymore.

Yes, this should have been part of de1e67d (list-objects: pass full pathname to callbacks, 2016-02-11), but I missed it.

The patch itself looks fine to me (though it probably makes more sense to point to de1e67d than the merge).

Note also that:
Show 6 quoted lines
> ======================================================================
> From ae72c8f9085b3b7bd84f94f90ff5b0416db59d67 Mon Sep 17 00:00:00 2001
> From: Petr Stodulka <pstodulk@redhat.com>
> Date: Wed, 16 Mar 2016 18:51:53 +0100
> Subject: [PATCH] remove obsoleted function path_name() from header file
>  revision.h

It makes things easier on the maintainer if you format your patch such that "git am" can apply it directly. Use scissors like:

-- >8 --

to separate the patch from anything that should not go into the commit message (rather than "=====..." as you have here).

Drop the "From " line which says nothing (it is an mbox separator, but we are already inside a message).

The rest of the headers do not hurt, but are generally redundant with what is in your email header (though in this case, the Subject is different, so you would want to retain that).

-Peff
Previous: Petr StodulkaNext: Eric Sunshine
Message 2 of 4 in “Forgotten declaration of function path_name() in revision.h?”
  1. Petr StodulkaMar 16, 2016
  2. Jeff KingMar 16, 2016
  3. Eric SunshineMar 16, 2016
  4. Petr StodulkaMar 16, 2016

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.