Skip to contentSkip to conversation

enhancements for the context menu of the Rev list

PATCH In review Markus Heidelberg 3 participants 9 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

cover enhancements for the context menu of the Rev list

Markus Heidelberg (4):
Don't count the submenu entries for checking if it is empty Correctly count the entries in the revs context menu Avoid submenus with merely 1 entry
Create a separate submenu for tags

 src/mainimpl.cpp |   51 +++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 39 insertions(+), 12 deletions(-)
#1 lore raw

Markus Heidelberg, 06.06.2009:

Quoted 5 lines

Markus Heidelberg (4):
Don't count the submenu entries for checking if it is empty Correctly count the entries in the revs context menu Avoid submenus with merely 1 entry
Create a separate submenu for tags

Hmm, no In-Reply-To in 1..4/4

I think I managed to do this earlier with just

  $ git format-patch -4 -s
  $ git send-email 000*

But not even

  $ git send-email --thread 000*
seems to work.

Only

  $ git format-patch -4 -s --thread
  $ git send-email 000*
#2 lore raw

PATCH 1/2 add a test case for threaded mails without chain-reply-to

---

Quoted 13 lines

Markus Heidelberg, 06.06.2009:

Quoted 5 lines

Markus Heidelberg (4):
Don't count the submenu entries for checking if it is empty Correctly count the entries in the revs context menu Avoid submenus with merely 1 entry
Create a separate submenu for tags

Hmm, no In-Reply-To in 1..4/4

I think I managed to do this earlier with just

  $ git format-patch -4 -s
  $ git send-email 000*
Quoted 7 lines

But not even

  $ git send-email --thread 000*
seems to work.

Only

  $ git format-patch -4 -s --thread
  $ git send-email 000*

Indeed a regression.

 t/t9001-send-email.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
t/t9001-send-email.sh +11 -0
index ce26ea4..576bbd3 100755
@@ -621,4 +621,15 @@ test_expect_success 'in-reply-to but no threading' '
 	grep "In-Reply-To: <[email protected]>"
 '
 
+test_expect_failure 'threading but no chain-reply-to' '
+	git send-email \
+		--dry-run \
+		--from="Example <[email protected]>" \
+		[email protected] \
+		--thread \
+		--no-chain-reply-to \
+		$patches $patches |
+	grep "In-Reply-To: "
+'
+
 test_done
Signature · 1 line
1.6.3.2.216.g24c61
#3 lore raw

PATCH 2/2 send-email: fix threaded mails without chain-reply-to

These commands didn't send threaded mails anymore:

    $ git format-patch <revision range>
    $ git send-email --thread --no-chain-reply-to <files>

This regression was introduced in commit 15da108 ("send-email:
'References:' should only reference what is sent", 2009-04-13) by a hidden code style change:

    ! defined $reply_to || length($reply_to) == 0
was changed to
    not defined $reply_to || length($reply_to) == 0
which is
    not (defined $reply_to || length($reply_to) == 0)
instead of
    (not defined $reply_to) || (length($reply_to) == 0)
---
 git-send-email.perl   |    2 +-
 t/t9001-send-email.sh |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
git-send-email.perl +1 -1
index 3d6a982..c914bff 100755
@@ -1142,7 +1142,7 @@ foreach my $t (@files) {
 	my $message_was_sent = send_message();
 
 	# set up for the next message
-	if ($message_was_sent and $chain_reply_to || not defined $reply_to || length($reply_to) == 0) {
+	if ($message_was_sent and $chain_reply_to || !defined $reply_to || length($reply_to) == 0) {
 		$reply_to = $message_id;
 		if (length $references > 0) {
 			$references .= "\n $message_id";
t/t9001-send-email.sh +1 -1
index 576bbd3..bb03aa4 100755
@@ -621,7 +621,7 @@ test_expect_success 'in-reply-to but no threading' '
 	grep "In-Reply-To: <[email protected]>"
 '
 
-test_expect_failure 'threading but no chain-reply-to' '
+test_expect_success 'threading but no chain-reply-to' '
 	git send-email \
 		--dry-run \
 		--from="Example <[email protected]>" \
Signature · 1 line
1.6.3.2.216.g24c61
#4 lore raw

Re: [PATCH 2/2] send-email: fix threaded mails without chain-reply-to

Markus Heidelberg, 07.06.2009:

Quoted 4 lines

These commands didn't send threaded mails anymore:

    $ git format-patch <revision range>
    $ git send-email --thread --no-chain-reply-to <files>

I also just noticed a warning without this patch, can't remember if I have seen it before...

Use of uninitialized value in length at /home/markus/git/install/libexec/git-core/git-send-email line 1146.

#6 lore raw

PATCH v2 1/1 add a test case for threaded mails without chain-reply-to

In reply to Markus Heidelberg

---

--nochain-reply-to instead of
--no-chain-reply-to

see commits 3fee1fe8 and 84eeb687:
t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'

 t/t9001-send-email.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
t/t9001-send-email.sh +11 -0
index ce26ea4..4ccca44 100755
@@ -621,4 +621,15 @@ test_expect_success 'in-reply-to but no threading' '
 	grep "In-Reply-To: <[email protected]>"
 '
 
+test_expect_failure 'threading but no chain-reply-to' '
+	git send-email \
+		--dry-run \
+		--from="Example <[email protected]>" \
+		[email protected] \
+		--thread \
+		--nochain-reply-to \
+		$patches $patches |
+	grep "In-Reply-To: "
+'
+
 test_done
Signature · 1 line
1.6.3.2.216.g24c61.dirty
#7 lore raw

Re: [PATCH v2] add a test case for threaded mails without chain-reply-to

Markus Heidelberg, 07.06.2009:

Quoted 10 lines

---

--nochain-reply-to instead of
--no-chain-reply-to

see commits 3fee1fe8 and 84eeb687:
t9001: use older Getopt::Long boolean prefix '--no' rather than '--no-'

 t/t9001-send-email.sh |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

Ah, the subject should have been [PATCH v2 1/2] and there should have been a Signed-Off. I'll resend cleanly with some more patches in a series shortly (I guess :))

#8 lore raw
In reply to Markus Heidelberg
Quoted 10 lines · Markus Heidelberg

Markus Heidelberg (4):
 Don't count the submenu entries for checking if it is empty Correctly count the entries in the revs context menu Avoid submenus with merely 1 entry
 Create a separate submenu for tags

 src/mainimpl.cpp |   51 +++++++++++++++++++++++++++++++++++++++------------

 1 files changed, 39 insertions(+), 12 deletions(-)

Thanks for this series. Context menu really needed some love.

Patches applied and pushed to

http://git.kernel.org/?p=qgit/qgit4.git;a=summary

Marco