Skip to contentSkip to conversation

(unknown)

PATCH [email protected] 2 participants 4 messages Aug 11, 2016

lore
Share & tools
lore
#0 lore raw

From b149c0fca7399030225750958bf5c962c3796b44 Mon Sep 17 00:00:00 2001
From: Andy Parkins <[email protected]>
Date: Wed, 25 Oct 2006 15:49:50 +0100
Subject: [PATCH] Make new builtin cherry match documentation for "+" and "-"
To: [email protected]
X-TUID: 218b478df3f8d847
X-UID: 128
X-Length: 1090
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <[email protected]>

"+" and "-" don't match the documentation, where "+" means the patch /is/ in upstream, "-" means it isn't

---
 builtin-log.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
builtin-log.c +2 -2
index 840c742..8ded627 100644
@@ -519,12 +519,12 @@ int cmd_cherry(int argc, const char **ar
 
 	while (list) {
 		unsigned char sha1[20];
-		char sign = '+';
+		char sign = '-';
 
 		commit = list->item;
 		if (!get_patch_id(commit, &patch_id_opts, sha1) &&
 		    lookup_object(sha1))
-			sign = '-';
+			sign = '+';
 
 		if (verbose) {
 			static char buf[16384];
Signature · 1 line
1.4.2.3
#2 lore raw

Re: Make new builtin cherry match documentation for "+" and "-"

In reply to Junio C Hamano
Quoted 5 lines · Junio C Hamano
Quoted 2 lines

"+" and "-" don't match the documentation, where "+" means the patch /is/ in upstream, "-" means it isn't

The documentation was utterly wrong. The comment at the beginning of git-cherry.sh was better but slightly wrong.

Seriously? In git-cherry output a "-" means that a patch is in? Seems counter-intuitive to me.

Or is it meant to be analogous to a diff so "+" means "in order to make this branch like the comparison branch you would have to /add/ this patch"?

Andy

Signature · 1 line
Dr Andy Parkins, M Eng (hons), MIEE
#1 lore raw
In reply to [email protected]
Quoted 4 lines · [email protected] writes:

From b149c0fca7399030225750958bf5c962c3796b44 Mon Sep 17 00:00:00 2001
From: Andy Parkins <[email protected]>
Date: Wed, 25 Oct 2006 15:49:50 +0100
Subject: [PATCH] Make new builtin cherry match documentation for "+" and "-"

Quoted 8 lines

To: [email protected]
X-TUID: 218b478df3f8d847
X-UID: 128
X-Length: 1090
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Message-Id: <[email protected]>

I'd be commenting on your patch but won't be able to take any of them until these "Subject: (unknown)" are corrected.

Quoted 2 lines

"+" and "-" don't match the documentation, where "+" means the patch /is/ in upstream, "-" means it isn't

The documentation was utterly wrong. The comment at the beginning of git-cherry.sh was better but slightly wrong.

I have a few fixes queued but I was busy for the last couple of nights and haven't pushed them out.

#3 lore raw

Re: Make new builtin cherry match documentation for "+" and "-"

In reply to Andy Parkins
Quoted 5 lines · Andy Parkins
Quoted 3 lines · Junio C Hamano
Quoted 2 lines

"+" and "-" don't match the documentation, where "+" means the patch /is/ in upstream, "-" means it isn't

Quoted 8 lines
Quoted 2 lines

The documentation was utterly wrong. The comment at the beginning of git-cherry.sh was better but slightly wrong.

Seriously? In git-cherry output a "-" means that a patch is in? Seems counter-intuitive to me.

Or is it meant to be analogous to a diff so "+" means "in order to make this branch like the comparison branch you would have to /add/ this patch"?

It's more like "This is still relevant and you need to positively push your upstream for inclusion".