git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH 0/1] Add an option to git-format-patch to record base tree info
@ 2016-02-22  2:58 Xiaolong Ye
  2016-02-22  2:58 ` [RFC/PATCH 1/1] format-patch: add an option " Xiaolong Ye
  0 siblings, 1 reply; 29+ messages in thread
From: Xiaolong Ye @ 2016-02-22  2:58 UTC (permalink / raw)
  To: git; +Cc: fengguang.wu, ying.huang, philip.li, julie.du, Xiaolong Ye

Hi, 

I am a developer of 0-Day kernel test infrastructure(It is a service and
test framework for automated regression-testing that intercepts linux kernel
development at its early stages [1]), and as proposed by developers in ksummit-discuss,
we have implemented a framework to test all patches sent to LKML, it could help
us to find out potential build/boot/regression errors as early as possible.

In order to test LKML patches on their correct trees, we need to know the
corresponding base tree info, such as git url, branch, base commit id, etc,
currently we did some guess works and it may apply patches to the wrong base
trees, leading to undesirable false positives.

The only clean solution is for the developers to include these base tree info in
their first [PATCH] email, so we propose to add an option "--base-tree-info" to
git-format-patch to record these info in cover letter or the first patch
(put it between the "---" marker line and the actual diff), we believe it would
also be useful for maintainers who use git to manage their projects.

The initial implementation only record the base(parent) commit SHA1 of the
first patch. Here is the example:

1) with cover letter

you could see the commit id at the bottom of the message.

2) without cover letter

	Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
	---
	 builtin/log.c | 17 +++++++++++++++++
	 diff.c        |  4 ++++
	 diff.h        |  3 ++-
	 revision.h    |  1 +
	 4 files changed, 24 insertions(+), 1 deletion(-)

	base commit: 0233b800c838ddda41db318ee396320b3c21a560

	diff --git a/builtin/log.c b/builtin/log.c
	index 0d738d6..49fe8c2 100644
	--- a/builtin/log.c
	+++ b/builtin/log.c


What do you think? Any review comments about this patch or any suggestions
to us would be greatly appreciated.

[1] https://01.org/lkp/documentation/0-day-test-service

Thanks,
Xiaolong.

Xiaolong Ye (1):
  format-patch: add an option to record base tree info

 builtin/log.c | 18 ++++++++++++++++++
 diff.c        |  4 ++++
 diff.h        |  3 ++-
 revision.h    |  1 +
 4 files changed, 25 insertions(+), 1 deletion(-)

base commit: 0233b800c838ddda41db318ee396320b3c21a560

-- 
2.7.1.340.gf1cebb4

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2016-02-24 18:34 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-22  2:58 [RFC/PATCH 0/1] Add an option to git-format-patch to record base tree info Xiaolong Ye
2016-02-22  2:58 ` [RFC/PATCH 1/1] format-patch: add an option " Xiaolong Ye
2016-02-22  4:19   ` Junio C Hamano
2016-02-22  7:30     ` Jacob Keller
2016-02-23  1:47     ` Fengguang Wu
2016-02-23  6:54       ` Junio C Hamano
2016-02-23  9:17         ` Fengguang Wu
2016-02-23  9:23           ` H. Peter Anvin
2016-02-23  9:32             ` Fengguang Wu
2016-02-23 10:32           ` Dan Carpenter
2016-02-23 12:00             ` Fengguang Wu
2016-02-23 13:31               ` Dan Carpenter
2016-02-24  2:55                 ` Fengguang Wu
2016-02-24  6:30                   ` Junio C Hamano
2016-02-24  7:07                     ` Fengguang Wu
2016-02-24 18:34                       ` Junio C Hamano
2016-02-23 19:51           ` Junio C Hamano
2016-02-23 20:08             ` Eric W. Biederman
2016-02-23 20:35               ` Junio C Hamano
2016-02-23 20:46                 ` H. Peter Anvin
2016-02-23 21:49                   ` Eric W. Biederman
2016-02-24  1:40                     ` H. Peter Anvin
2016-02-23 22:21                   ` Stefan Beller
2016-02-24 10:31                     ` Michael J Gruber
2016-02-24  6:19                   ` Junio C Hamano
2016-02-24  3:36                 ` Fengguang Wu
2016-02-24  3:13             ` Fengguang Wu
2016-02-23 19:56           ` Eric W. Biederman
2016-02-24  2:30             ` Fengguang Wu

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).