Re: cherry picking changesets instead of commits

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: cherry picking changesets instead of commits

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:39

Geoffrey Irving [off-list ref] writes:
On May 28, 2008, at 11:19 AM, Junio C Hamano [off-list ref] wrote:
quoted
"Geoffrey Irving" [off-list ref] writes:
quoted
Would it be straightforward
to add an option to "git cherry" to ignore differences in metadata?
The cherry documentation doesn't give its criteria for when commits
match, and I'm not familiar enough with the code yet to figure out
those criteria directly from cmd_cherry in builtin-log.c.
cherry does not look at metadata at all.  It compares patch-ids.
Can you define what a patch-id is?
$ man git-patch-id

Re: cherry picking changesets instead of commits

From: Geoffrey Irving <hidden>
Date: 2016-06-15 22:44:39

On Wed, May 28, 2008 at 11:46 AM, Junio C Hamano [off-list ref] wrote:
Geoffrey Irving [off-list ref] writes:
quoted
On May 28, 2008, at 11:19 AM, Junio C Hamano [off-list ref] wrote:
quoted
"Geoffrey Irving" [off-list ref] writes:
quoted
Would it be straightforward
to add an option to "git cherry" to ignore differences in metadata?
The cherry documentation doesn't give its criteria for when commits
match, and I'm not familiar enough with the code yet to figure out
those criteria directly from cmd_cherry in builtin-log.c.
cherry does not look at metadata at all.  It compares patch-ids.
Can you define what a patch-id is?
$ man git-patch-id
Thanks!  Here's a patch to avoid duplicating this particular ignorant question.

Geoffrey

commit a1bac5e1aa52f9a78733aa35a0a7e820df618301
Author: Geoffrey Irving [off-list ref]
Date:   Wed May 28 12:38:11 2008 -0700

    doc: mention git-patch-id in git-cherry documentation
diff --git a/Documentation/git-cherry.txt b/Documentation/git-cherry.txt
index b0468aa..9817fb5 100644
--- a/Documentation/git-cherry.txt
+++ b/Documentation/git-cherry.txt
@@ -41,6 +41,8 @@ has been applied <upstream> under a different commit
id.  For example,
 this will happen if you're feeding patches <upstream> via email rather
 than pushing or pulling commits directly.

+For details about how patches are compared, see git-patch-id.
+

 OPTIONS
 -------
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help