* Forgotten declaration of function path_name() in revision.h?
@ 2016-03-16 18:05 Petr Stodulka
2016-03-16 18:48 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Petr Stodulka @ 2016-03-16 18:05 UTC (permalink / raw)
To: git@vger.kernel.org; +Cc: Junio C Hamano
[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]
Hi,
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.
Regards,
Petr
======================================================================
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
The function was removed by commit 9831e92 due to possible security
issue.
---
revision.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/revision.h b/revision.h
index dca0d38..f20168e 100644
--- a/revision.h
+++ b/revision.h
@@ -257,8 +257,6 @@ extern void put_revision_mark(const struct rev_info *revs,
extern void mark_parents_uninteresting(struct commit *commit);
extern void mark_tree_uninteresting(struct tree *tree);
-char *path_name(struct strbuf *path, const char *name);
-
extern void show_object_with_name(FILE *, struct object *, const char *);
extern void add_pending_object(struct rev_info *revs,
--
2.4.3
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: Forgotten declaration of function path_name() in revision.h?
2016-03-16 18:05 Forgotten declaration of function path_name() in revision.h? Petr Stodulka
@ 2016-03-16 18:48 ` Jeff King
2016-03-16 18:52 ` Eric Sunshine
2016-03-16 19:08 ` Petr Stodulka
0 siblings, 2 replies; 4+ messages in thread
From: Jeff King @ 2016-03-16 18:48 UTC (permalink / raw)
To: Petr Stodulka; +Cc: git@vger.kernel.org, Junio C Hamano
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:
> ======================================================================
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Forgotten declaration of function path_name() in revision.h?
2016-03-16 18:48 ` Jeff King
@ 2016-03-16 18:52 ` Eric Sunshine
2016-03-16 19:08 ` Petr Stodulka
1 sibling, 0 replies; 4+ messages in thread
From: Eric Sunshine @ 2016-03-16 18:52 UTC (permalink / raw)
To: Jeff King; +Cc: Petr Stodulka, git@vger.kernel.org, Junio C Hamano
On Wed, Mar 16, 2016 at 2:48 PM, Jeff King <peff@peff.net> wrote:
> 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).
Also, Signed-off-by: is missing.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Forgotten declaration of function path_name() in revision.h?
2016-03-16 18:48 ` Jeff King
2016-03-16 18:52 ` Eric Sunshine
@ 2016-03-16 19:08 ` Petr Stodulka
1 sibling, 0 replies; 4+ messages in thread
From: Petr Stodulka @ 2016-03-16 19:08 UTC (permalink / raw)
To: Jeff King; +Cc: git@vger.kernel.org, Junio C Hamano
[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]
On 16.3.2016 19:48, Jeff King wrote:
> 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:
>
>> ======================================================================
>> 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
>
Thanks for advice. I will remember this. When I have time, I will look
at git-send-mail eventually.
Petr
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-16 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 18:05 Forgotten declaration of function path_name() in revision.h? Petr Stodulka
2016-03-16 18:48 ` Jeff King
2016-03-16 18:52 ` Eric Sunshine
2016-03-16 19:08 ` Petr Stodulka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).