[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131029020227.GD11861@sigill.intra.peff.net>
Date: Mon, 28 Oct 2013 22:02:28 -0400
From: Jeff King <peff@...f.net>
To: Thomas Rast <tr@...masrast.ch>
Cc: Johan Herland <johan@...land.net>,
Christian Couder <christian.couder@...il.com>,
Josh Triplett <josh@...htriplett.org>,
Michael Haggerty <mhagger@...m.mit.edu>,
Git mailing list <git@...r.kernel.org>,
Dan Carpenter <dan.carpenter@...cle.com>,
Greg KH <greg@...ah.com>,
ksummit-2013-discuss@...ts.linuxfoundation.org,
ksummit-attendees@...ts.linuxfoundation.org,
Linux Kernel mailing list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] commit: Add -f, --fixes <commit> option to add Fixes:
line
On Mon, Oct 28, 2013 at 11:10:13PM +0100, Thomas Rast wrote:
> * In your list
>
> > Fixes:
> > Reported-by:
> > Suggested-by:
> > Improved-by:
> > Acked-by:
> > Reviewed-by:
> > Tested-by:
> > Signed-off-by:
>
> and I might add
>
> Cherry-picked-from:
> Reverts:
>
> if one were to phrase that as a footer/pseudoheader, observe that
> there are only two kinds of these: footers that contain identities,
> and footers that contain references to commits.
I think people put other things in, too. For example, cross-referencing
bug-tracker ids.
In fact, if I saw "fixes: XXX", I would expect the latter to be a
tracker id. People do this a lot with GitHub issues, because GitHub
will auto-close issue 123 if a commit with "fixes #123" is pushed to
master. Because of the "#", no pseudo-header is needed, but I have also
seen people use the footer style (I don't have any examples on-hand,
though).
That being said, in your examples:
> So why not support these use-cases? We could have something like
> footer.foo.* configuration, e.g.
>
> [footer "fixes"]
> type = commit
> suggest = true
> [footer "acked-by"]
> type = identity
you could easily have "type=text" to handle arbitrary text.
-Peff
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists